14

nginx load balancing issue with 301 from backend

view full story
linux-howto

http://serverfault.com – I am running into an odd problem for which I am not sure if it is a configuration issue or a bug in nginx. My setup is a nginx reverse proxy which has Apache2 backend servers. The load balancer is pretty basic similar to the example from the wiki, e.g. simplified: http { upstream myproject { server 127.0.0.1:8000; } server { listen 80; location / { proxy_pass http://myproject; } } } Now, a problem arises for example when I try to request a directory in Apache, without the trailing slash at the end of the url. For example, a client requests: http://apache.myse (HowTos)