Wednesday, June 3, 2009

Apache Virtual Hosts

I've received several pm's on how to create virtual hosts via Apache, so I decided to give an sample Apache virtual host config so they can have something to start with

For a more complete detail on configuring virtual hosts in Apache you can get a complete guide via Google.

Thanks for the messages, the Apache virtual host config sample is below :

NameVirtualHost *

#### NOTE!!! This entry must be first so any connection that does
# not match a virtualhost name will match the default (first) server.

ServerAdmin webmaster@domain.com
DocumentRoot /path/to/doc/root/for/this/server
ServerName www.domain.com



ServerAdmin webmaster@otherdomain.com
DocumentRoot /path/to/other/domain/root
ServerName www.otherdomain.com



ServerAdmin webmaster@moredomains.com
DocumentRoot /path/to/you/know/where
ServerName www.guesswhere.com


Readers who read this page, also read:




Bookmark and Share My Zimbio http://www.wikio.com

0 comments: