www-apache-bugdb mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jack Holt <h...@smarthealth.com>
Subject mod_dir/576: Port 0 being added in directory redirects
Date Tue, 13 May 1997 18:40:02 GMT

>Number:         576
>Category:       mod_dir
>Synopsis:       Port 0 being added in directory redirects
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    apache (Apache HTTP Project)
>State:          open
>Class:          sw-bug
>Submitter-Id:   apache
>Arrival-Date:   Tue May 13 11:40:01 1997
>Originator:     holt@smarthealth.com
>Release:        1.2b10
SunOS rabies 5.5 Generic sun4m sparc SUNW,SPARCstation-20
GCC 2.7.2
When the server does a redirect from a directory without a trailing slash,
to the same URL with the trailing slash appended, it adds ":0" after the
hostname.  This happens even if I have specified port 80 in the URL.

This may be specific to configurations like ours, since it hasn't been
reported before so far as I could see.  Our configuration is basically
like this:

Listen 80
  ProxyRequests on
  # other directives here, too
  # Serve no local docs on this port
  <Directory />
    order deny,allow
    deny from all
<VirtualHost _default_:80>
   # This vhost serves all local docs
   DocumentRoot /yada/yada/yada
   # lots of other directives

Here's a sample telnet session:

HTTP/1.1 301 Moved Permanently
Date: Tue, 13 May 1997 18:34:04 GMT
Server: Apache/1.2b10
Location: http://smarthealth.com:0/SP/
Connection: close
Content-Type: text/html

<TITLE>301 Moved Permanently</TITLE>
<H1>Moved Permanently</H1>
The document has moved <A HREF="http://smarthealth.com:0/SP/">here</A>.<P>
Connection closed by foreign host.

The ":0" makes Netscape (3.01/NT) unhappym since it tried to actually connect
to port 0, I guess, but MSIE3.02 seems to ignore it and follows the redirect
on port 80 instead,
Try <http://smarthealth.com/SP>


View raw message