Quantcast
Channel: Nginx Forum - How to...
Viewing all articles
Browse latest Browse all 4759

Reverse proxy to backend without sending context location to backend

$
0
0
Hello Nginx community!

I am since a bit of time trying to set up a backend server on my Nginx instance.

I can access the backend directly with: status.domain.com on port 443.

When I add this to my nginx settings:

location /status {
proxy_pass https://status.domain.com/;

}

I would expect it to forward all requests to the status machine.
It doesn't matter if I add trailing slashes in location or proxy_pass directive...

With those settings I get redirected to status.domain.com
I'd like to have all to go through the proxy.

What am I missing here?

Thanks
David

Viewing all articles
Browse latest Browse all 4759

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>