| < Previous | Index | Next > |
1) Go to C:\www where our local web sites live, and create a new site folder: domain-name.com. Inside this folder create two sub-folders: public_html and www_logs.
2) Open up C:\Program Files\Apache Software Foundation\Apache2.2\conf\extra\httpd-vhosts.conf into Notepad.
3) Copy and paste an existing <VirtualHost> entry in the httpd-vhosts.conf file. Go through the new copy, changing the paths to reflect the new folder created in Step 1. The end result will look something like this:
<VirtualHost *:80>
DocumentRoot C:/www/domain-name.com/public_html
ServerName domain-name.dev
ServerAlias www.domain-name.dev
ErrorLog C:/www/domain-name.com/www_logs/error_log.txt
CustomLog C:/www/domain-name.com/www_logs/access_log.txt common
php_value error_log "C:/www/domain-name.com/php_error_log.txt"
<Directory "C:/www/domain-name.com/public_html">
AllowOverride All
Options Indexes FollowSymLinks
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
4) Save the file.
5) Using either the Host Administrator program, or the manual method outlined in Step 11, add in two new domain names:
127.0.0.1 domain-name.dev 127.0.0.1 www.domain-name.dev
6) Save the hosts file.
7) Open the Apache Service Monitor from the system tray and click Stop. Wait for the stopped message and then click Start.
8) Your new web site is now running on http://domain-name.dev and http://www.domain-name.dev.
| < Previous | Index | Next > |
|
Need help? Post in the WAMP Guide Forum! © Copyright 2007 - 2008 Richard Davey |