Article View: best.general
Article #356Re: Watch out for directory URLs without trailing slash.
From: Michael Han
Date: Mon, 22 Oct 2001 06:23
Date: Mon, 22 Oct 2001 06:23
19 lines
1886 bytes
1886 bytes
On Sun, 21 Oct 2001 17:26:40 +0000 (UTC), Joe Smith <inwap@best.com> wrote:
>The version of Apache running on the new web servers has a bug.
>
>HTTP_HOST = inwap.best.vwh.net
>SERVER_NAME = inwap.com
>SERVER_SIGNATURE = "Apache/1.3.19 Ben-SSL/1.42 Server at inwap.com Port 80"
>
>If you enter a directory URL that is lacking a trailing slash
>(like http://inwap.best.vwh.net/u/joe), the web server send back a
>response redirecting the browser to the correct URL. Unfortunately it
>is sending "http://inwap.com:80/u/joe/" instead of
>"http://inwap.best.vwh.net/u/joe/". That is, $SERVER_NAME is set
>to `uname -n` instead of $ENV{HTTP_HOST}.
Sounds like the server is configured for UseCanonicalName
<http://httpd.apache.org/docs/mod/core.html#usecanonicalname> . That
gets tricky when using redirects and rewrites.
--
mikehan+&$#^@best.com
Technical Details
Message-ID:
<slrn9t7equ.bef.mikehan+&$#^@shell7.ba.best.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!news-peer-west.sprintlink.net!news.sprintlink.net!enews.sgi.com!news1.best.com!nntp1.ba.best.com!mikehan+&$#^References:
<9qv0gg$1sug$1@nntp1.ba.best.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f9f6d,dab64f691ab939d4 X-Google-Attributes: gidf9f6d,public X-Google-ArrivalTime: 2001-10-21 23:23:38 PST Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!news-peer-west.sprintlink.net!news.sprintlink.net!enews.sgi.com!news1.best.com!nntp1.ba.best.com!mikehan+&$#^ From: mikehan+&$#^@best.com (Michael Han) Newsgroups: best.general Subject: Re: Watch out for directory URLs without trailing slash. Followup-To: best.general Date: Mon, 22 Oct 2001 06:23:27 +0000 (UTC) Organization: The ISP formerly known as Best Lines: 19 Distribution: best Message-ID: <slrn9t7equ.bef.mikehan+&$#^@shell7.ba.best.com> References: <9qv0gg$1sug$1@nntp1.ba.best.com> NNTP-Posting-Host: shell7.ba.best.com X-Trace: nntp1.ba.best.com 1003731807 64310 206.184.139.138 (22 Oct 2001 06:23:27 GMT) X-Complaints-To: abuse@best.com NNTP-Posting-Date: Mon, 22 Oct 2001 06:23:27 +0000 (UTC) User-Agent: slrn/0.9.6.2 (FreeBSD)