Hi,

I cannot seem to get a trac(http) to work behind a pound when terminating
SSL in pound, reason being the Location headers. I've tried RewriteLocation
0, 1 & 2 but I get the same results.
If not using SSL it works like a charm.

pound: 192.168.1.101 port 443
trac: 192.168.1.9 port 8001 (aka dev.somesite.co.za)

Here's the HTTP headers:

# RewriteLocation 1
*https://192.168.1.101/somesite/login

POST /somesite/login HTTP/1.1
Host: 192.168.1.101 *
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.15)
Gecko/2009102815 Ubuntu/9.04 (jaunty) Firefox/3.0.15
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 300
Connection: keep-alive
Referer: https://192.168.1.101/somesite/login
Cookie: trac_form_token=28146bfa9a4b9351f62964af;
trac_session=3172579d9e1e206cb675685f;
somesite_SE_=DE3FC0BDD333A6AF0B21D7E461FB9B45CFC9F04D;
somesite_ZA_=40E8AE6E0816CAA953245780F039E34E55C5303A
Content-Type: application/x-www-form-urlencoded
Content-Length: 128
__FORM_TOKEN=28146bfa9a4b9351f62964af&referer=https%3A%2F%2F192.168.1.101%2Fsomesite&user=user&password=pass

*HTTP/1.x 303 See Other *
Server: tracd/0.11.6 Python/2.5.2
Date: Fri, 05 Feb 2010 06:46:22 GMT
*Location: http://dev.somesite.co.za:8001/somesite *
Content-Type: text/plain
Content-Length: 0
Pragma: no-cache
Cache-Control: no-cache
Expires: Fri, 01 Jan 1999 00:00:00 GMT
Set-Cookie: trac_auth=ac9dd48dc4fb043165e24b601bf0ed35; Path=/somesite
Set-Cookie: trac_session=3172579d9e1e206cb675685f; expires=Fri, 05-Feb-2010
06:46:22 GMT; Path=/somesite


# RewriteLocation 2
*https://192.168.1.101/somesite/login

POST /somesite/login HTTP/1.1
Host: 192.168.1.101 *
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.15)
Gecko/2009102815 Ubuntu/9.04 (jaunty) Firefox/3.0.15
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 300
Connection: keep-alive
Referer: https://192.168.1.101/somesite/login
Cookie: trac_form_token=28146bfa9a4b9351f62964af;
trac_session=071c2f59a2bac3581a6305cc;
somesite_SE_=DE3FC0BDD333A6AF0B21D7E461FB9B45CFC9F04D;
somesite_ZA_=40E8AE6E0816CAA953245780F039E34E55C5303A
Content-Type: application/x-www-form-urlencoded
Content-Length: 128
__FORM_TOKEN=28146bfa9a4b9351f62964af&referer=https%3A%2F%2F192.168.1.101%2Fsomesite&user=user&password=pass
*
HTTP/1.x 303 See Other *
Server: tracd/0.11.6 Python/2.5.2
Date: Fri, 05 Feb 2010 06:44:19 GMT
*Location: http://dev.somesite.co.za:8001/somesite *
Content-Type: text/plain
Content-Length: 0
Pragma: no-cache
Cache-Control: no-cache
Expires: Fri, 01 Jan 1999 00:00:00 GMT
Set-Cookie: trac_auth=3206335706edfb02beb842668ee443c0; Path=/somesite
Set-Cookie: trac_session=071c2f59a2bac3581a6305cc; expires=Fri, 05-Feb-2010
06:44:19 GMT; Path=/somesite

This is a tcpdump on the trac server:

..t..y..POST /somesite/login HTTP/1.1
Host: 192.168.1.101
Referer: https://192.168.1.101/somesite/login
Content-Length: 128
X-Forwarded-For: 192.168.1.139

.y....t.HTTP/1.0 303 See Other
.y....t.Server: tracd/0.11.6 Python/2.5.2
.y....t.Location: http://dev.somesite.co.za:8001/somesite

Am I missing something obvious?
-- 
Mattias Berge
Direct +46 (0)40-690 3825


--
To unsubscribe send an email with subject unsubscribe to [email protected].
Please contact [email protected] for questions.

Reply via email to