Forum Moderators: phranque
<VirtualHost *:80>
ServerName www.test.tv
ServerAlias *test.tv
DocumentRoot /var/www/test
</VirtualHost>
to httpd-virtual-hosts.conf (a file which i had included at the bottom of apache2.conf) it changed my localhost to map to that directory, and did not allow me to go to www.test.tv .
i know that the first virtual host entry is the default for the localhost, so i had put
NameVirtualHost *:80
<VirtualHost *:80>
ServerName www.localhost
ServerAlias loc *localhost
DocumentRoot /var/www/
</VirtualHost>
at the top of the httpd-virtual-hosts.conf file (as i had seen in the apache documentation...
(i am aware that i should re-start apache when making these kind of changes..)
does anyone have any ideas as to what is going on?
Because each setup is different, all I can suggest is that you read through the documents linked on this Apache page [httpd.apache.org] and figure out which method best applies to your situation.
Jim