Trailing Slash in nginx has been giving me some sleepless nights lately. Requesting some help with this
Question : Strange trailing slash behavior in proxy_pass
.
So why would this work :
location /myapi/ {
proxy_pass http://node_server8/;
}
and this won't
location /myapi/ {
proxy_pass http://node_server8;
}
Notice the missing trailing slash at the end of http://node_server8
in second code block. This is specially strange as I have a few other configurations where I don't have a trailing slash on the backend and all works fine.