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
Googled a bit around and tried this config now but no luck there either

server {
listen 80;
server_name bi.myserver.com;
location / {
return 301 /(analytics|xmlpserver);
}
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;
}
}

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>