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

Re: Reverse proxy with URI

$
0
0
Hi,

Remove / doesn't change anything. I got the same issue...

i configured a new "server" with a port (9901) for testing like this :

server {
listen 80;
server_name sub.domain.tld 192.168.1.53;
location /manage {
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_pass http://10.3.3.1:9595;
}
location / {
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_pass http://10.3.3.2:9595;
}
}

server {
listen 9901;
server_name sub.domain.tld 192.168.1.53;
location / {
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_pass http://10.3.3.1:9595/;
}
}

When i try to get http192.168.1.53:9901 i also get 10.3.3.2 server

It's so crazy....

Bertrand

Edit : and for each test, i delete the cache from my navigator....

Viewing all articles
Browse latest Browse all 4759

Trending Articles



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