virtual hosts stopped working!
Posted by: trashy (---.pilotpoint.tx.cebridge.net)
Date: January 15, 2007 05:16AM

I had virtual hosting set up and working for several months, and this morning I discovered that going to my main IP address was redirecting straight to one of my web sites, which I did not want. So I started making changes to my httpd.conf and now all my sites redirect to the main /www directory! Here is my current code - what is wrong?

<VirtualHost *:80>
DocumentRoot "c:/wamp/www/"
ServerName localhost
ErrorLog "c:/wamp/logs/localhost.net-error_log"
</VirtualHost>
<VirtualHost thedixons.net:80>
DocumentRoot "c:/wamp/www/thedixons"
ServerName thedixons.net
ServerAlias thedixons.net www.thedixons.net
ErrorLog "c:/wamp/logs/thedixons.net-error_log"
Redirect permanent /news [thedixons.net]
</VirtualHost>
<VirtualHost damnablog.com:80>
DocumentRoot "c:/wamp/www/damnablog"
ServerName damnablog.com
ServerAlias damnablog.com www.damnablog.com
ErrorLog "c:/wamp/logs/damnablog.net-error_log"
</VirtualHost>
<VirtualHost apileofblog.com:80>
DocumentRoot "c:/wamp/www/apileofblog"
ServerName apileofblog.com
ServerAlias apileofblog.com www.apileofblog.com
ErrorLog "c:/wamp/logs/apileofblog.net-error_log"
</VirtualHost>

Options: ReplyQuote


Sorry, only registered users may post in this forum.