[NTLUG:Discuss] Apache vhost configuration question

m m llliiilll at hotmail.com
Mon Jul 24 08:03:34 CDT 2000


Here are the code:

NameVirtualHost 129.107.56.23
<VirtualHost 129.107.56.23>
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 129.107.56.23>
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>


The result is root DocumentRoot index.html page, neither
jchsu.org's or hsuhome's DocumentRoot index.html page.

NameVirtualHost 129.107.56.23

<VirtualHost jchsu.org>
same as above.
</VirtualHost>

<VirtualHost hsuhome.com>
same as above.
</VirtualHost>

after run/restart the httpd (clean restart) the error log says:
...[warn] VirtualHost jchsu.org:80 overlap with VirtualHost hsuhome.com:80
the first has precedence, perhaps you need a NameVietualHost directive.

I tried to browser the sites, it just went to the first site
(jchsu.org).

these domain names in the Virtual Hosts directive is valid in answered by 
DNS.



>From: Cameron <hrothgar at endor.hsutx.edu>
>Reply-To: discuss at ntlug.org
>To: discuss at ntlug.org
>Subject: Re: [NTLUG:Discuss] Apache vhost configuration question
>Date: Sun, 23 Jul 2000 22:49:44 -0500
>
>* llliiilll at hotmail.com [2000.07.23 02:56]:
>: <VirtualHost 192.107.65.23>
>: # server a
>: ...
>: </virtualHost>
>: <VirtualHost 192.107.65.23>
>: # server b
>: ...
>: </virtualHost>
>
>please post what you have in the VirtualHost sections.  without that
>info, it's hard to tell what could be wrong.
>--
>cameron
>   / Right now I'm having amnesia and deja vu at the \
>   \ same time. I think I've forgotten this before.  /
>
>_______________________________________________
>http://ntlug.org/mailman/listinfo/discuss

________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com





More information about the Discuss mailing list