virtual domain httpdf.conf file code

Virtual hosting is a method for hosting multiple domain names (with separate handling of each name) on a single server (or pool of servers). This allows one server to share its resources, such as memory and processor cycles, without requiring all services provided to use the same host name.

NameVirtualHost *:80


ServerName localhost
DocumentRoot “C:/wamp/www”


ServerName news.alpha.org
DocumentRoot “C:/wamp/www/news.alpha.org”


allow from all
order allow,deny
AllowOverride All

# Apache will look for these two files, in this order, if no file is specified in the URL
DirectoryIndex index.html index.php

Was this article helpful?