JLBN - Virtual Hosts on WAMP

J L B N

Free Guides, Themes, Photo, Games, Movies

Setup Virtual Host without Domain

Some people might wonder "What need to be change when I do not have a real domain?"; Except the codes for Virtual Host has minor change, everything else is the same and it is very simple with the codes in httpd-vhosts.conf are as follows:

NameVirtualHost *:80

<VirtualHost *:80>
ServerName domain
DocumentRoot C:/wamp/www/domain
ErrorLog "C:/wamp/www/domain/logs/error.log"
CustomLog "C:/wamp/www/domain/logs/access.log" common
</VirtualHost>

<VirtualHost *:80>
ServerName sub1
DocumentRoot C:/wamp/www/sub1
ErrorLog "C:/wamp/www/sub1/logs/error.log"
CustomLog "C:/wamp/www/sub1/logs/access.log" common
</VirtualHost>

<VirtualHost *:80>
ServerName sub2
DocumentRoot C:/wamp/www/sub2
ErrorLog "C:/wamp/www/sub2/logs/error.log"
CustomLog "C:/wamp/www/sub2/logs/access.log" common
</VirtualHost>

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

 

Click here to see real Virtual Hosts based on this guide

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.