Setup a V-Host on WAMP

Setup a Virtual Host on WAMP
Most developers do work locally, Like them i work locally, test then deploy to staging / production.
Sometime i used to work on WAMP stack too… in this case creating virtual hosts is better option
V-Hosts makes URL cleaner, no need of much modifications in case of CMS

let’s setup a virtual host in WAMP.

Open your Apache configuration
Default Location : C:\wamp\bin\apache\apache2.4.9\conf
Search for “Virtual hosts”
Uncomment the Include line if it is commented
Virtual Host Config File Include
Virtual Host Config File Include
Now update the Virtual host config file
Sample vHost config
<VirtualHost *:80>
    DocumentRoot “C:\wamp\www\asvignesh.local”
    ServerName asvignesh.local
    ErrorLog “logs/asvignesh.local.log”
    CustomLog “logs/asvignesh.local.log” common
V Host Config
V Host Config
Set your windows host file
Location : C:\Windows\System32\drivers\etc\hosts
Windows Host File
Windows Host File
Restart WAMP Services
You are done…
Open the vHost server from your browser ..
Default image
Vignesh A Sathiyanantham
AWS Certified developer with 8 years of extensive experience working for Cloud and Datacenter solutions and leading a small team in a lean startup based on Bangalore, India

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.