From nobody@hyperreal.com Thu Jun 26 04:52:19 1997 Received: (from nobody@localhost) by hyperreal.com (8.8.5/8.8.5) id EAA08414; Thu, 26 Jun 1997 04:52:19 -0700 (PDT) Message-Id: <199706261152.EAA08414@hyperreal.com> Date: Thu, 26 Jun 1997 04:52:19 -0700 (PDT) From: William Howard Reply-To: williamh@pdd.3com.com To: apbugs@hyperreal.com Subject: Domain name NOT added to lone machine name before VirtualHost sections are searched X-Send-Pr-Version: 3.2 >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 >State: closed >Class: sw-bug >Submitter-Id: apache >Arrival-Date: Thu Jun 26 05:00:02 1997 >Last-Modified: Sun Jun 29 17:22:59 PDT 1997 >Originator: williamh@pdd.3com.com >Organization: >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, ServerRoot /usr/local/etc/httpd/htdocs Alias /Building2/ /usr/local/etc/httpd/htdocs/Projects/Building2/ 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 section will fix this But seems something of a nasty hack! %0 >Audit-Trail: State-Changed-From-To: open-closed State-Changed-By: dgaudet State-Changed-When: Sun Jun 29 17:22:59 PDT 1997 State-Changed-Why: Nothing can be done about this inside apache. The client is responsible for sending the hostname part of the URL and the standards actually dictate that it send exactly what you're seeing. You've got one workaround already ... another would be to use mod_rewrite tricks to cause the server to issue redirects to the full url. Thanks for using Apache! Dean >Unformatted: