[NTLUG:Discuss] Apache vhost configuration question
Cameron
hrothgar at endor.hsutx.edu
Mon Jul 24 13:16:56 CDT 2000
* ghewett at d-techcorp.com [2000.07.24 12:11]:
: Try this:
:
: NameVirtualHost 129.107.56.23
:
: <VirtualHost jchsu.org>
: ServerAdmin webmaster at jchsu.org
: DocumentRoot /www/jchsu.org
: ServerName jchsu.org
: ErrorLog /var/log/httpd/jchsu.error_log
: TransferLog /var/log/httpd/jchsu.access_log
: <Directory /www/jchsu.org>
: Options Includes Indexes FollowSymLinks
: AllowOverride FileInfo AuthConfig Limit
: </Directory>
: </VirtualHost>
:
: <VirtualHost hsuhome.com>
: ServerAdmin webmaster at hsuhome.com
: DocumentRoot /www/hsuhome.com
: ServerName hsuhome.com
: ErrorLog /var/log/httpd/hsuhome.error_log
: TransferLog /var/log/httpd/hsuhome.access_log
: <Directory /www/jsuhome.com>
: Options Includes Indexes FollowSymLinks
: AllowOverride FileInfo AuthConfig Limit
: </Directory>
: </VirtualHost>
:
: You might also want to add www.hsuhome.com and stuff. because they will not
: be "caught".
:
: greg
Greg is on the right track here. you will want to add:
ServerAlias www.jchsu.org
Also, the <Directory> tags are irrelevent, as i mentioned before.
without explicitly stating the Directory, apache defaults to the
DocumentRoot, so having the <Directory> tags is redundant in this
situation.
--
cameron
More information about the Discuss
mailing list