www-apache-bugdb mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alexandre Snarskii <s...@paranoia.ru>
Subject general/1563: forgotten port of request.
Date Tue, 16 Dec 1997 20:17:29 GMT

>Number:         1563
>Category:       general
>Synopsis:       forgotten port of request.
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    apache
>State:          open
>Class:          sw-bug
>Submitter-Id:   apache
>Arrival-Date:   Tue Dec 16 12:20:00 PST 1997
>Originator:     snar@paranoia.ru
>Release:        1.2.4
Apache 1.2.4, FreeBSD 2.1.5-2.2.5 (not related to OS, anyway)
FreeBSD horse.nevalink.ru 2.2.2-RELEASE FreeBSD 2.2.2-RELEASE #0: Tue Oct 14 20:19:06 MSD
1997     root@horse.nevalink.ru:/usr/src/sys/compile/horse  i386
let assume, that we have standard-installed apache 1.2.4,
with one only change in config : will use
Listen 80
Listen 8010
instead of usual Port 80. Let's make directory htdocs/foo, and then
try to retrieve http://some.host:8010/foo (note, that there is no trailing slash!).
The result will be "Moved Permanent", as it expected, but in Location
field we found: Location: http://some.host/foo/ - the requested port is forgotten.
See above. You can try to repeat it even on www.apache.org :)
fast and dirty hack: that patch is to mod_dir.c
<       r->server->port=ntohs(r->connection->local_addr.sin_port);
[In order for any reply to be added to the PR database, ]
[you need to include <apbugs@Apache.Org> in the Cc line ]
[and leave the subject line UNCHANGED.  This is not done]
[automatically because of the potential for mail loops. ]

View raw message