upstream doesn't rewrite the host name?

Mark Swanson mark at ScheduleWorld.com
Sat Dec 13 02:10:12 MSK 2008


Ok, after quite a bit of searching and reading I found I needed
something like this:

    location = / {
        proxy_pass http://tomcatcluster;
        proxy_redirect off;
        proxy_set_header Host $host ;
        proxy_set_header X-Real-IP $remote_addr ;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for ;
    }

>From a newb perspective, the documentation should have contained an
example like this.

nginx looks amazing.





More information about the nginx mailing list