Add this to the bottom of the httpd.conf file (apache folder)
1 2 3 4 5 6 7 |
NameVirtualHost 127.0.0.1 <virtualhost 127.0.0.1> DocumentRoot "C:\wamp\www\clienta" ServerName clienta </virtualhost> |
1 2 3 4 5 6 |
<virtualhost 127.0.0.1> DocumentRoot "C:\wamp\www\clientb" ServerName clientb </virtualhost> |
and this to the hosts file (C:\Windows\System32\drivers\etc)
1 2 3 4 |
127.0.0.1 clienta 127.0.0.1 clientb |
Restart apache, and just type clienta and see the files in that folder prefererably index.html
If you have this in the top of httpd.conf : – Listen 127.0.0.1:3700
then you will have to add clienta:3700 to your url and your code will be like this: –
1 2 3 4 5 6 7 8 9 10 11 12 13 |
NameVirtualHost 127.0.0.1:3700 <VirtualHost 127.0.0.1:3700> DocumentRoot "C:\wamp\www\PPC" ServerName ppc </VirtualHost> <VirtualHost 127.0.0.1:3700> DocumentRoot "C:\wamp\www\telematics" ServerName telematics </VirtualHost> |