www-apache-bugdb mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jack Holt <h...@smarthealth.com>
Subject config/583: _default_ VirtualHost not matching when IP number and port used
Date Wed, 14 May 1997 21:50:01 GMT

>Number:         583
>Category:       config
>Synopsis:       _default_ VirtualHost not matching when IP number and port used
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    apache (Apache HTTP Project)
>State:          open
>Class:          sw-bug
>Submitter-Id:   apache
>Arrival-Date:   Wed May 14 14:50:00 1997
>Originator:     holt@smarthealth.com
>Release:        1.2b10
SunOS rabies 5.5 Generic sun4m sparc SUNW,SPARCstation-20 
GCC 2.7.2
Our config consists of two VirtualHosts, one specific to one port & IP, the
other intended to catch requests on a different port on all IP's.  (like this:

  Listen 80
  <VirtualHost> ... </VirtualHost>
  <VirtualHost _default_:80> ... </VirtualHost>

This works fine for requests using any of our multiple hostnames for this machine,
but a request to (or even http:/ is served by the 
main server, not the second virtualhost.  Since we don't set a DocumentRoot
for the main server, and there is no htdocs dir in the ServerRoot directory,
an error gets logged to the error log, which is specified in the main server,
and inherited by the second virtual host (so I am assuming the main server is
logging the error based on it looking for htdocs in the ServerRoot.)
Try a configuration like I described above.


View raw message