>Number:         790
>Category:       mod_alias
>Synopsis:       Domain name NOT added to lone machine name before VirtualHost 
>sections are searched
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    apache (Apache HTTP Project)
>State:          open
>Class:          sw-bug
>Submitter-Id:   apache
>Arrival-Date:   Thu Jun 26 05:00:02 1997
>Originator:     [EMAIL PROTECTED]
>Organization:
apache
>Release:        1.2.0
>Environment:
SunOS scunk 5.5.1 Generic_103640-01 sun4m sparc SUNW,SPARCstation-10
gcc version 2.7.2
>Description:
This is related to part 2 of PR#788

If a URL with only a machine name is specified (for example, 
http://scunk/Building2/)
the default domain name of the server is not added before VirtualHost sections 
are
searched.

This results in a number of errors, the most visible occuring with Aliases

For example,

<VirtualHost scunk.pdd.3com.com>
  ServerRoot /usr/local/etc/httpd/htdocs
  Alias /Building2/ /usr/local/etc/httpd/htdocs/Projects/Building2/
</VirtualHost>

with the above URL does not map correctly but returns a 404 error 
(as .../htdocs/Building2/ does not exist)
>How-To-Repeat:
See above
>Fix:
Adding 
  ServerAlias machine 
to each 
  <VirtualHost machine.dom.ain> 
section will fix this

But seems something of a nasty hack!
%0
>Audit-Trail:
>Unformatted:


Reply via email to