How to proxy_pass POST with headers

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


On 27 Jan 2012 14h02 WET, jkpasanen at gmail.com 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 foo.bar/index.php?id=123 it uses
> foo.bar/this/is/the/file.html)
>
> 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: http://wiki.nginx.org/IfIsEvil

--- appa



More information about the nginx mailing list