Hi,
I am trying to accomplish the following scenario:
1. Requests from the Internet goes to our Citrix NetScaler frontend - working
2. NetScaler passes on to Nginx in DMZ - working
3. Nginx sends requests to an internal server for mycompany.com/analytics and mycompany.com/xmlp - working
4. If anything besides analytics or xmlp is requested, the analytics page should be shown - working
5. Nginx should send requests to mycompany.com/resources to another Nginx server on the inside that has access to a restricted server to present content - not working (could the return 301 /analytics be creating this misbehaviour?)
The inside Nginx conf looks like this:
server {
listen 80;
server_name localhost;
location / {
root //myrestrictedserver/common/Data/OracleBI;
}
I cannot figure out what the config on the DMZ Nginx should look like? Any help or tips highly appreciated!
I tried this but only received a 404 from my DMZ Nginx:
server {
listen 80;
server_name mycompany.com;
location / {
return 301 /analytics;
}
location /analytics {
proxy_pass http://internalserver:9502;
}
location /xmlp {
proxy_pass http://internalserver:9502;
}
location /resources {
proxy_pass http://restrictedserver;
}
}
Thx in advance.
Cheers
thg
I am trying to accomplish the following scenario:
1. Requests from the Internet goes to our Citrix NetScaler frontend - working
2. NetScaler passes on to Nginx in DMZ - working
3. Nginx sends requests to an internal server for mycompany.com/analytics and mycompany.com/xmlp - working
4. If anything besides analytics or xmlp is requested, the analytics page should be shown - working
5. Nginx should send requests to mycompany.com/resources to another Nginx server on the inside that has access to a restricted server to present content - not working (could the return 301 /analytics be creating this misbehaviour?)
The inside Nginx conf looks like this:
server {
listen 80;
server_name localhost;
location / {
root //myrestrictedserver/common/Data/OracleBI;
}
I cannot figure out what the config on the DMZ Nginx should look like? Any help or tips highly appreciated!
I tried this but only received a 404 from my DMZ Nginx:
server {
listen 80;
server_name mycompany.com;
location / {
return 301 /analytics;
}
location /analytics {
proxy_pass http://internalserver:9502;
}
location /xmlp {
proxy_pass http://internalserver:9502;
}
location /resources {
proxy_pass http://restrictedserver;
}
}
Thx in advance.
Cheers
thg