[sllug-members]: Apache - hosting multiple sites
Nathan Lane
nathamberlane at gmail.com
Wed Apr 16 15:24:50 MDT 2008
And this simply goes in my httpd.config file, right? Do I need to do
anything on my router besides direct traffic to my server machine
ip-address?
On Wed, Apr 16, 2008 at 3:18 PM, Jeff Schroeder <jeff at zingstudios.com>
wrote:
> 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
>
> ______________________________________________________________________
> See http://www.sllug.org/ for latest SLLUG news, information, links.
> Join SLLUG and other UT LUG members on irc.FreeNode.net channel #Utah
> sllug-members at sllug.org
> http://www.sllug.org/cgi-bin/mailman/listinfo/sllug-members
>
>
--
Nathan Lane
Home, http://www.nathandelane.com
Blog, http://nathandelane.blogspot.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://sllug.org/pipermail/sllug-members/attachments/20080416/b4cf03f6/attachment.html
More information about the sllug-members
mailing list