Posted by:
angelman7
(---.hsd1.nm.comcast.net)
Ok, I did the following and it's not working:
1. Added "127.0.0.1 www" to the hosts file. Now [
localhost] and [
www] both bring up the WAMP page. I'd like [
www] to point to my work directory at d:\Web\www.
2. Opened C:\wamp\bin\apache\apache2.2.8\conf\extra\httpd-vhosts.conf and changed it to this:
NameVirtualHost *:80
<VirtualHost *:80>
ServerName localhost
DocumentRoot C:/wamp/www
ErrorLog C:/wamp/www/logs/error.log
CustomLog C:/wamp/www/logs/access.log common
</VirtualHost>
<VirtualHost *:80>
ServerName www
DocumentRoot D:/Web/www
ErrorLog D:/Web/www/logs/error.log
CustomLog D:/Web/www/logs/access.log common
</VirtualHost>
3. Uncommented "Include conf/extra/httpd-vhosts.conf" in C:\wamp\bin\apache\apache2.2.8\conf\httpd.conf
4. Restarted WAMP
Then nothing worked. I recomented the line in httpd.conf, restarted WAMP, and it's back to normal.
What am I doing wrong?
Edited 2 time(s). Last edit at 05/18/2008 09:42PM by angelman7.