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

Reverse proxy with URI

$
0
0
Hello,

I'm new with Nginx and i have some mistake with a configuration.

I use Nginx on CentOS 7.

Here is my configuration :

==========
server {
listen 80;
server_name sub.domain.tld;

location / {
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_pass http://10.3.3.2:9595;
}

location /manage/ {
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_pass http://10.3.3.1:9595/;
}
}
===========
When i go to my domain, the first location works fine..
But when i go to sub.domain.tld/manage, this is the application on 10.3.3.2 that appears.

And i don't understant why

Someone can help me?

Thank in advance.

Bertrand

Viewing all articles
Browse latest Browse all 4759

Trending Articles



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