Tag Archive 'virtual hosts'

Setting Up Virtual Hosts in Wamp Server

Step 1.
Edit hosts file to map virtual host name to ip address.
add 127.0.0.1 xxxxx.localhost
i have used vinod.localhost
Location:C:\Windows\System32\drivers\etc\hosts

In vista, run the notepad in administrator mode to edit hosts file.
Step 2.
Edit Apache configuration file httpd.conf  to add server name and document location for virtual hosts.
after DocumentRoot “c:/wamp/www/” in httpd.conf, add

NameVirtualHost 127.0.0.1
<VirtualHost 127.0.0.1>
ServerName localhost
DocumentRoot “c:/wamp/www”
</VirtualHost>
<VirtualHost [...]

Read Full Post »