Nginx: How do I forward an HTTP request to another port?

I hate the subtlety here, but try adding a / at the end of 9000 like below. It will no longer append “route” to the forwarded request now.

location /route {
    proxy_pass  http://127.0.0.1:9000/;
}

Leave a Comment