How to proxy_pass POST with headers

António P. P. Almeida appa at
Fri Jan 27 14:12:43 UTC 2012

On 27 Jan 2012 14h02 WET, jkpasanen at wrote:

> Hi,
> I'm using Typo3 as CMS with Apache on Ubuntu 10.04. I'm trying to
> set Nginx as a reverse proxy with a typo3 extension evo_nginx_boost
> that uses memcached. I have everything running on the same machine,
> Nginx on port 80 and apache behind a firewall on port 8085 and
> memcached behind a on port 11211.
> So far I have got everything else working just fine except sending
> any POST information, ex. logging in, etc. This causes browser to
> try to fetch images, etc. behind firewall (port 8085) and also Typo3
> doesn't know how to parse the url to right place (it's creating nice
> urls. Instead of it uses
> I think that In order to get it work I would somehow need to be able
> to set proxy_set_header Host $http_host;, but Nginx doesn't let me
> do that in if-statement (see below). I really don't know how to
> resolve this and googling around didn't help me, so I would be
> extremely happy if anybody could give me any feedback! Thanks!

For starters:

--- appa

More information about the nginx mailing list