rewrite Location header?

3molo nginx-forum at
Wed Feb 3 16:50:33 MSK 2010


Running nginx as a reverse proxy for trac. Reaching trac etc works, but when posting login credentials, trac returns a Location: header as seen below.

POST /somesite/login HTTP/1.1
HTTP/1.x 303 See Other
Server: tracd/0.11.6 Python/2.5.2
Date: Wed, 03 Feb 2010 13:37:16 GMT

This is the case when going through nginx too, but I now need to rewrite the Location response header to http://ip_to_nginx:port/ instead, as the trac server is not reachable from the outside.
Im kind of stuck :(

Here's the simple proxy_pass config:
      location /somesite {

Posted at Nginx Forum:,49946,49946#msg-49946

More information about the nginx mailing list