JLBN - Virtual Hosts on WAMP

J L B N

Free Guides, Themes, Photo, Games, Movies

Setup Virtual Hosts

To demonstrate, we use our domain JLBN.net and two subdomains Guides and Downloads; the codes in httpd-vhosts.conf are as follows:

NameVirtualHost *:80

<VirtualHost *:80>
ServerName www.jlbn.net
ServerAlias jlbn.net jlbn
DocumentRoot C:/wamp/www/jlbn
ErrorLog "C:/wamp/www/jlbn/logs/jlbn_error.log"
CustomLog "C:/wamp/www/jlbn/logs/jlbn_access.log" common
</VirtualHost>

<VirtualHost *:80>
ServerName guides.jlbn.net
ServerAlias guides
DocumentRoot C:/wamp/www/guides
ErrorLog "C:/wamp/www/guides/logs/guides_error.log"
CustomLog "C:/wamp/www/guides/logs/guides_access.log" common
</VirtualHost>

<VirtualHost *:80>
ServerName downloads.jlbn.net
ServerAlias downloads
DocumentRoot C:/wamp/www/downloads
ErrorLog "C:/wamp/www/downloads/logs/downloads_error.log"
CustomLog "C:/wamp/www/downloads/logs/downloads_access.log" common
</VirtualHost>

<VirtualHost *:80>
ServerName localhost
DocumentRoot C:/wamp/www
ErrorLog "C:/wamp/www/logs/localhost_error.log"
CustomLog "C:/wamp/www/logs/localhost_access.log" common
</VirtualHost>

 

When you ready, click here to go to the next page

Appreciation, Suggestion, Question, or Comment, click here

It's NO MATTER a million or only one dollar donation BUT it's your generosity to help; thus, if you find our website is useful, please consider making a symbolic donation through our PayPal on JLBN.net. Thanks.