Return-Path: Delivered-To: apmail-httpd-dev-archive@www.apache.org Received: (qmail 20921 invoked from network); 5 Oct 2003 00:15:15 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 5 Oct 2003 00:15:15 -0000 Received: (qmail 44028 invoked by uid 500); 5 Oct 2003 00:14:52 -0000 Delivered-To: apmail-httpd-dev-archive@httpd.apache.org Received: (qmail 43985 invoked by uid 500); 5 Oct 2003 00:14:52 -0000 Mailing-List: contact dev-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: dev@httpd.apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list dev@httpd.apache.org Received: (qmail 43972 invoked from network); 5 Oct 2003 00:14:51 -0000 Received: from unknown (HELO jarl.webthing.com) (81.174.201.107) by daedalus.apache.org with SMTP; 5 Oct 2003 00:14:51 -0000 Received: from fenris.webthing.com (fenris.webthing.com [192.168.10.5]) by jarl.webthing.com (Postfix) with ESMTP id 91F6B6305 for ; Sun, 5 Oct 2003 01:14:57 +0100 (BST) Received: by fenris.webthing.com (Postfix, from userid 1000) id 0AD68172; Sun, 5 Oct 2003 01:14:56 +0100 (BST) Received: from localhost (localhost [127.0.0.1]) by fenris.webthing.com (Postfix) with ESMTP id A893116F for ; Sun, 5 Oct 2003 01:14:56 +0100 (BST) Date: Sun, 5 Oct 2003 01:14:56 +0100 (BST) From: Nick Kew To: Subject: ProxyPassReverse doesn't fix broken Location Message-ID: <20031005010207.I1314-100000@fenris.webthing.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N (this originally cropped up with one of my own rewriting modules, but removing it from the config makes no difference to it) I've just tried the following on my desktop box: ProxyPass /apachecon.com/ http://apachecon.com/ ProxyPassReverse /apachecon.com/ http://apachecon.com/ That gives me: bash-2.05$ lynx -dump -head http://localhost/apachecon.com/ HTTP/1.1 302 Found Date: Sat, 04 Oct 2003 23:59:51 GMT Server: Apache/1.3.28-dev (Unix) PHP/4.4.0-dev DAV/1.0.3-dev Content-Location: index.html Vary: negotiate TCN: choice P3P: policyref="/w3c/p3p.xml" X-Powered-By: PHP/4.4.0-dev Location: /2003/US/index.html Content-Type: text/html; charset=ISO-8859-1 Connection: close Now that Location header is clearly illegal under RFC2616 (section 14.30). Nevertheless it's rather common practice, and it breaks the proxy. So it seems to me that ProxyPassReverse should fix it. I don't mind hacking mod_proxy to fix this if necessary, but I'd like to check first that I'm not overlooking anything obvious. If any PHP folks are listening, can I suggest PHP should prevent this happening in the first place by fixing up Location: headers? -- Nick Kew In urgent need of paying work - see http://www.webthing.com/~nick/cv.html