How to add Virtual Hosts to WAMP

October 29, 2014   /   by Marco  / Categories :  Websites

I’ve done this many times in the past, but for some reason I forgot the actual steps so decided to write them down. Here’s the steps:

1. edit the httpd.conf file located in C:\wamp\bin\apache\apache[version number]\conf

httpd conf location

2. Search for Virtual hosts and remove the #

# Virtual hosts
#Include conf/extra/httpd-vhosts.conf

httpd conf settings

3. No open the httpd-vhosts.conf file located in C:\wamp\bin\apache\apache[version number]\conf\extra and add the following information replacing businesslegion.com with your own domain name:

wamp extra httpd

<VirtualHost *:80>
ServerAdmin info@businesslegions.com
DocumentRoot "C:/wamp/www/businesslegions.com"
ServerName www.businesslegions.com
ServerAlias *.businesslegions.com businesslegions.com
ErrorLog "logs/businesslegions.com-error.log"
CustomLog "logs/businesslegions.com-access.log" common
</VirtualHost>

 

4. Restart the WAMP service and test. The easiest way to test this is to modify your host file and add:

127.0.0.1 yourdomainname.com

Once you have finished with your testing remember to remove it.

DO YOU LIKE WHAT YOU'VE READ?
Join our subscription list and receive our content right in your mailbox. If you like to receive some Great deals our Freebies then subscribe now!

Our Sponsors

  • Follow us:

OTHER ARTICLES YOU MAY LIKE


TOP USEFUL LINKEDIN TOOLS THAT WILL HELP YOU STAY CONNECTED WITH YOUR CLIENTS

TOP USEFUL LINKEDIN TOOLS THAT WILL HELP YOU STAY CONNECTED WITH YOUR CLIENTS

While LinkedIn is mainly known as a business social network, it’s much more than that. It’s a go-to place for professionals to stay connected with past colleagues and friends, a place to find jobs, and a place to find clients. It is an essential tool for networking with others in the professional world. In addition […]

read more
USING WPFORMS AND SENDINBLUE

USING WPFORMS AND SENDINBLUE

WPforms is a WordPress Plugin you can use to add any type of forms to your WordPress site. WPforms is a drag-and-drop form builder, which means that you don’t need to know how to code to build a landing page, sales page, opt-in page, thank you page or any other type of page you can […]

read more

Like our Page