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