[sllug-members]: Apache - hosting multiple sites
Jeff Schroeder
jeff at zingstudios.com
Wed Apr 16 15:18:26 MDT 2008
Nathan asked:
> How simple is it to host multiple complete web sites based on
> sub-domain in Apache, and how do I accomplish this?
It's very simple. The directives you want to use are NameVirtualHost
and VirtualHost, which allow you to create separate sites based on the
domain name.
For example:
NameVirtualHost *
<VirtualHost nathan.nathandelane.com>
ServerName nathan.nathandelane.com
DocumentRoot /path/to/files
</VirtualHost>
<VirtualHost amber.nathandelane.com>
ServerName amber.nathandelane.com
DocumentRoot /path/to/other/files
</VirtualHost>
HTH,
Jeff
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part.
Url : http://sllug.org/pipermail/sllug-members/attachments/20080416/ebf653d4/attachment.pgp
More information about the sllug-members
mailing list