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