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
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