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

Re: Problem routing 2 almost similar url's (windows)

$
0
0
Thx for trying to help :-)

I changed my config to:

server {
listen 80;
server_name bi.myserver.com;

location /analytics {
proxy_pass http://server011:9502;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-Host $host;
proxy_set_header X-Forwarded-Server $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
location /xmlpserver {
proxy_pass http://server011:9502;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-Host $host;
proxy_set_header X-Forwarded-Server $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
}

If I now send bi.myserver.com OR bi.myserver.com/analytics I am directed to the correct page. Strange thing is that that is exactly what happens if I try accessing bi.myserver.com/xmlpserver too? Seems to be some kind of redirect still going on but I have none in my config?

Also tried commenting out all the proxy_set_header's but no difference :-(

Any ideas?

Cheers
thg

Viewing all articles
Browse latest Browse all 4759

Trending Articles



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