trailing slash at end URL with nginx as a reverse proxy for multiple website

Edho Arief edho at myconan.net
Sun Nov 20 09:12:05 UTC 2011


On Sun, Nov 20, 2011 at 3:11 PM, Nguyen Hai Nam <nam.nh at nd24.net> wrote:
> If someone open the link http://a.com/something nginx can't serve it then
> return the error message that says "http://a.com:8001/something"
> unreachable.
>

Are you sure it's nginx error and not backend's?

Also you may want to try adding these lines:

    proxy_set_header X-Real-IP $remote_addr;
    proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
    proxy_set_header Host $http_host;


-- 
O< ascii ribbon campaign - stop html mail - www.asciiribbon.org



More information about the nginx mailing list