[NTLUG:Discuss] Apache vhost configuration question

m m llliiilll at hotmail.com
Sun Jul 23 02:55:28 CDT 2000


Hi all:

I try to configure multihost on one single IP on apache (1.3.12) server. I 
followed the documentation, and can't make it work! I wonder if it only 
works on different IPs, or different Ports? Can it happens on the same IP 
and port?

when I do this:
...
NameVirtualHost 192.107.65.23
<VirtualHost 192.107.65.23>
# server a
...
</virtualHost>
<VirtualHost 192.107.65.23>
# server b
...
</virtualHost>

after run/restart the httpd (clean restart) the error log says:
...[crit] (98)Address already in use: make_sock: could not bind to port 80.
and the server always direct the resuset to the root DocumentRoot, neither 
a's or b's DocumentRoot.

if I do this
...
NameVirtualHost 192.107.65.23
<VirtualHost aaa.aaa.aaa>
# server a
...
</virtualHost>
<VirtualHost bbb.bbb.bbb>
# server b
...
</virtualHost>

after run/restart the httpd (clean restart) the error log says:
...[warn] VirtualHost aaa.aaa:80 overlap with VirtualHost bbb.bbb:80 thr 
first has precedence, perhaps you need a NameVietualHost directive
I tried to browser the sites, it just went to the first site (aaa.aaa).

please help.

TIA

jc




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





More information about the Discuss mailing list