--- Begin Message ---
- To: Debian Bug Tracking System <submit@bugs.debian.org>
- Subject: apache2: When ProxyErrorOverride is on Apache replaces the body/headers of a 302 response
- From: Alain Bitschine <alain@bitschine.com>
- Date: Wed, 23 Jul 2008 16:59:56 +0200
- Message-id: <20080723145956.14501.37313.reportbug@sd-3023.bitschine.fr>
Package: apache2
Version: 2.2.3-4+etch4
Severity: normal
-- System Information:
Debian Release: 4.0
APT prefers stable
APT policy: (500, 'stable')
Architecture: i386 (i686)
Shell: /bin/sh linked to /bin/bash
Kernel: Linux 2.6.18-6-amd64
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
In short, when ProxyErrorOverride is on httpd will replace the body/headers of a 302 response -- which unnecessarily causes cookies to be dropped.
I'm using mod_proxy_http to reverse proxy a typo3 4.0 CMS. Cookies and most headers set by typo3 in a 302 response are dropped when proxyerroroverride is on.
Transcript #1, proxyerroroverride on
telnet 10.10.2.120 80
Trying 10.10.2.120...
Connected to 10.10.2.120.
Escape character is '^]'.
POST /typo3/install/index.php HTTP/1.1
Host: www.mywebsite.com
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; fr; rv:1.9.0.1) Gecko/2008070208 Firefox/3.0.1
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: fr,fr-fr;q=0.8,en-us;q=0.5,en;q=0.3
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 300
Proxy-Connection: keep-alive
Referer: http://www.mywebsite.com/typo3/install/index.php?TYPO3_INSTALL[type]=about
Cookie: Typo3InstallTool_key=8c2ea4463332e198a21f4772d81601ec; fe_typo_user=0bd8adbf99
Content-Type: application/x-www-form-urlencoded
Content-Length: 72
password=joh316&redirect_url=index.php%3FTYPO3_INSTALL%5Btype%5D%3Dabout
HTTP/1.1 302 Found
Date: Wed, 23 Jul 2008 14:46:31 GMT
Location: index.php?TYPO3_INSTALL[type]=about
Cache-Control: max-age=0
Expires: Wed, 23 Jul 2008 14:46:31 GMT
Content-Length: 219
Content-Type: text/html; charset=iso-8859-1
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>302 Found</title>
</head><body>
<h1>Found</h1>
<p>The document has moved <a href="index.php?TYPO3_INSTALL[type]=about">here</a>.</p>
</body></html>
Connection closed by foreign host.
Transcript #2, proxyerroroverride off
telnet 10.10.2.120 80
Trying 10.10.2.120...
Connected to 10.10.2.120.
Escape character is '^]'.
POST /typo3/install/index.php HTTP/1.1
Host: www.mywebsite.com
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; fr; rv:1.9.0.1) Gecko/2008070208 Firefox/3.0.1
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: fr,fr-fr;q=0.8,en-us;q=0.5,en;q=0.3
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 300
Proxy-Connection: keep-alive
Referer: http://www.mywebsite.com/typo3/install/index.php?TYPO3_INSTALL[type]=about
Cookie: Typo3InstallTool_key=8c2ea4463332e198a21f4772d81601ec; fe_typo_user=0bd8adbf99
Content-Type: application/x-www-form-urlencoded
Content-Length: 72
password=joh316&redirect_url=index.php%3FTYPO3_INSTALL%5Btype%5D%3Dabout
HTTP/1.1 302 Found
Date: Wed, 23 Jul 2008 14:43:17 GMT
Server: Apache
X-Powered-By: PHP/5.2.0-8+etch11
Expires: 0
Last-Modified: Wed, 23 Jul 2008 14:43:17 GMT
Cache-Control: no-cache, must-revalidate
Pragma: no-cache
Location: index.php?TYPO3_INSTALL[type]=about
Content-Type: text/html
Set-Cookie: Typo3InstallTool=7e0390009d046627b4c540e3a959aa97; path=/
Vary: Accept-Encoding,User-Agent
Transfer-Encoding: chunked
Content-Language: fr
38b
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
[...]
Regards,
Alain
--- End Message ---