In the nginx proxy_pass documentation it says
If proxy_pass is specified without a URI, the request URI is passed to the server in the same form as sent by a client when the original request is processed, or the full normalized request URI is passed when processing the changed URI
(emphasis mine)
What if I want to proxy /foo
to http://localhost:8080
without trailing foo
. How do I do that?