Quote:
Originally Posted by robertjinx
Create a vhost with localhost and DocumentRoot as it's set by default in the httpd.conf
You dont need ServerAlias for this.
Code:
<VirtualHost *:80>
DocumentRoot [where the documentroot is set in httpd.conf]
ServerName localhost
</VirtualHost>
and thats it.
|
Doing that throws up all this after /etc/init.d/apache2 restart
[Sun May 27 16:51:27 2012] [error] VirtualHost localhost:80 -- mixing * ports and non-* ports with a NameVirtualHost address is not supported, proceeding with undefined results
[Sun May 27 16:51:27 2012] [warn] _default_ VirtualHost overlap on port 80, the first has precedence
[Sun May 27 16:51:27 2012] [warn] _default_ VirtualHost overlap on port 80, the first has precedence
[Sun May 27 16:51:27 2012] [warn] NameVirtualHost 192.168.1.103:80 has no VirtualHosts
... waiting [Sun May 27 16:51:28 2012] [error] VirtualHost localhost:80 -- mixing * ports and non-* ports with a NameVirtualHost address is not supported, proceeding with undefined results
[Sun May 27 16:51:28 2012] [warn] _default_ VirtualHost overlap on port 80, the first has precedence
[Sun May 27 16:51:28 2012] [warn] _default_ VirtualHost overlap on port 80, the first has precedence
[Sun May 27 16:51:28 2012] [warn] NameVirtualHost 192.168.1.103:80 has no VirtualHosts
[ OK ]
I've changed it back to how it was before without the additional host
Bathory : Did I change my DNS on Fasthosts correctly then ? Its still the same after Restart and Browser cache clear. I should wait a few hours for the DNS to propagate you recon ?
Thanks for help
Kevin