You are viewing a plain text version of this content. The canonical link for it is here.
Posted to apache-bugdb@apache.org by Nicolas Regez <ni...@zurich.ch> on 2001/01/15 07:47:39 UTC
mod_dir/7068: Trailing slash redirect issued by mod_dir
>Number: 7068
>Category: mod_dir
>Synopsis: Trailing slash redirect issued by mod_dir
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: apache
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: apache
>Arrival-Date: Sun Jan 14 22:50:00 PST 2001
>Closed-Date:
>Last-Modified:
>Originator: nicolas.regez@zurich.ch
>Release: 1.3.6
>Organization:
apache
>Environment:
SunOS 5.7, newest gcc
>Description:
We are doing some proxying/load-balancing to several upstream servers which have different "ServerName"s.
When mod_dir issues a trailing slash redirect on a URI which corresponds to the name of a directory, it uses that "ServerName" in the "Location" http-header field. But the client does not know anything about our exotic DNS.
>How-To-Repeat:
http://zurich.ch/static
>Fix:
I suggest to modify the source of mod_dir according to the following output of "diff". What do you think? Is there a problem with a certain class of clients which do not find a redirection URL without protocol and hostname?
$ diff mod_dir.c_original mod_dir.c
136,137c136,137
< ap_table_setn(r->headers_out, "Location",
< ap_construct_url(r->pool, ifile, r));
---
> ap_table_setn(r->headers_out, "Location", ifile);
>
>Release-Note:
>Audit-Trail:
>Unformatted:
[In order for any reply to be added to the PR database, you need]
[to include <ap...@Apache.Org> in the Cc line and make sure the]
[subject line starts with the report component and number, with ]
[or without any 'Re:' prefixes (such as "general/1098:" or ]
["Re: general/1098:"). If the subject doesn't match this ]
[pattern, your message will be misfiled and ignored. The ]
["apbugs" address is not added to the Cc line of messages from ]
[the database automatically because of the potential for mail ]
[loops. If you do not include this Cc, your reply may be ig- ]
[nored unless you are responding to an explicit request from a ]
[developer. Reply only with text; DO NOT SEND ATTACHMENTS! ]