I suppose you solved the problem. In any case, itβs good to share some nice information on how to set up multiple virtual hosts in Wamp. This works for me:
http://www.kristengrote.com/blog/articles/how-to-set-up-virtual-hosts-using-wamp
In my case, I work with ports 8080 and 8181. 8080 is redirected to a subfolder under the c: \ wamp \ www \ myfolder folder, and 8181 is redirected to root c: \ wamp \ www.
To make 8181 work, I had to edit httpd-vhosts.conf, hosts (in the \ drivers \ etc folder) and httpd.conf.
In httpd.conf, my Apache listens for:
Listen 8080 Listen 8181
Also I unearthed:
Include conf/extra/httpd-vhosts.conf
my root points to
DocumentRoot "c:/wamp/www/myfolder"
The root directory is configured as:
<Directory "c:/wamp/www"> Options Indexes FollowSymLinks AllowOverride All Order Deny,Allow Deny from all Allow from 127.0.0.1 Allow from ::1 Allow from localhost </Directory>
and added:
<VirtualHost *:8181> DocumentRoot "C:\wamp\www" ServerName name-of-my-fake-server </VirtualHost>
in httpd-vhosts.conf I installed:
NameVirtualHost *:8181
in hosts (c: \ windows \ system32 \ drivers \ etc) I added:
127.0.0.1 localhost 127.0.0.1 name-of-my-fake-server #My Test Site
Now I have two ports running on 8080 and 8181: therefore, 8080 points to the directory "c:\wamp\www\myfolder" and the other port 8181 points to my root folder "c:\wamp\www\"
source share