![]() |
Apache2 - disable default virtual hosts problem
Hi,
I have created 3 virtual hosts e.g. /etc/apache2/sites-available/mynewsite and used a2ensite and restarted apache. I can browse to the site no problem. I want to disable the default site /etc/apache2/sites-available/default but when I issue a2dissite default and restart apache none of the virtual hosts can be accessed either? How do I do this? cheers Mark |
Hi,
I guess there is a Code:
NameVirtualHost *If you're sure you want to disable the default vhos, move the above directive into apache2.conf Regards |
Quote:
Code:
<VirtualHost *:80>Code:
NameVirtualHost * |
Since you're using a <VirtualHost *:80> notation, there should be a directive like:
Code:
NameVirtualHost *:80Anyway, what it the error you get whne trying to access your other vhosts? |
I don't think you need to add 'namevirtualhost'; it's more than likely already set in one of the config files.
You can navigate to /etc/apache2 and run Code:
grep -iR namevirtualhost * |
The output of
Code:
grep -iR namevirtualhost *Code:
ports.conf:NameVirtualHost *:80 |
| All times are GMT -5. The time now is 02:42 PM. |