Setup virtual host in WAMP

Setting up virtual host in WAMP

Assuming that I’m gonna setup a host named flirtchamp.localhost
and my host files are in D:\wamp\www\flirtchamp\public

1. Click WAMP icon on quick launc then Apache -> httpd.conf to open apache config file.

2. Go to bottom of the file and add following host settings.

<VirtualHost *:80>
ServerName flirtchamp.localhost
DocumentRoot D:\wamp\www\flirtchamp\public
SetEnv APPLICATION_ENV “development”
<Directory D:\wamp\www\flirtchamp\public>
DirectoryIndex index.php
AllowOverride All
Order allow,deny
Allow from all

3. Open the windows host file. in my case, C:\Windows\System32\drivers\etc\hosts
and place flirtchamp.localhost

at the bottom of the file

4. Restart the server.

2 thoughts on “Setup virtual host in WAMP

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s