I am trying to make vhost, but it is kinda semi working. I am able to run the **index.php** and load home page, but when I try to go to any link I am getting:
Not Found
The requested URL /home was not found on this server.
Apache/2.4.7 (Ubuntu) Server at c2s.dev Port 80
(I am using **yii2** framework, if that means something). I also can access the site using subdomain (I am getting Server not found). What is the proper configuration?
I am using Linux Mint 17.1 with default **LAMP** settings. This is my c2s.conf:
DocumentRoot /var/www/c2c/www
ServerName c2s.dev
ServerAlias *.c2s.dev
And in /etc/hosts I added this:
127.0.1.1 c2s.dev
127.0.1.1 *.c2s.dev
Asked by Sasha
(123 rep)
Mar 2, 2016, 12:50 PM
Last activity: Nov 25, 2018, 10:49 PM
Last activity: Nov 25, 2018, 10:49 PM