[NTLUG:Discuss] Apache vhost configuration question

Daniel L. Shipman webmaster at srj.net
Sun Jul 23 13:04:21 CDT 2000


Here's how I do mine

NameVirtualHost 216.61.196.129
<VirtualHost 216.61.196.129>
ServerAdmin webmaster at srjmarketing.com
DocumentRoot /home/httpd/html/public_html
ServerName srjmarketing.com
ErrorLog /var/log/httpd/srjmarketing.com.error_log
TransferLog /var/log/httpd/srjmarketing.com.access_log
  <Directory /home/httpd/html/public_html>
    Options Includes Indexes FollowSymLinks
    AllowOverride FileInfo AuthConfig Limit
  </Directory>
</VirtualHost>

<VirtualHost 216.61.196.129>
ServerAdmin webmaster at srjmarketing.com
DocumentRoot /home/highwaymaster/public_html
ServerName attrackcommunications-cgi.com
ScriptAlias /cgi-bin/ "/home/httpd/cgi-bin/cgiwrap/highwaymaster/"
ErrorLog /var/log/httpd/attrackcommunications-cgi.com.error_log
TransferLog /var/log/httpd/attrackcommunications-cgi.com.access_log
  <Directory /home/highwaymaster/public_html>
    Options Includes Indexes FollowSymLinks
    AllowOverride FileInfo AuthConfig Limit
    AddType application/x-shockwave-flash   .swf
  </Directory>
</VirtualHost>
----- Original Message -----
From: m m <llliiilll at hotmail.com>
To: <discuss at ntlug.org>
Sent: Sunday, July 23, 2000 2:55 AM
Subject: [NTLUG:Discuss] Apache vhost configuration question


> 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
>
>
> _______________________________________________
> http://ntlug.org/mailman/listinfo/discuss
>





More information about the Discuss mailing list