i'm trying to setup a local LAMP development environment. i had apache2, php5, mysql5, and phpmyadmin up and running.
i tried adding a virtualhost entry to point to a development folder, though, and now localhost is directed to that folder instead of /var/www. (i'm using the updated sites-available, sites-enabled virtualhost config).
is there something i should have changed in the default site config in sites-available to make sure only dev.mysite.com and
www.dev.mysite.com address are routed to the alternative DocRoot? i want to keep /var/www as the root for localhost addresses. hope thats clear. thanks!
here are the contents of the new conf file in sites-available:
Code:
<VirtualHost dev.mysite.com>
ServerAdmin webmaster@localhost
ServerName dev.mysite.com
ServerAlias www.dev.mysite.com
DocumentRoot /home/myname/wwwdev/mysite.com/
CustomLog /var/log/apache2/mysite.com-access.log combined
</VirtualHost>