Hello,
I have two servers (server 1 <---> server 2), which are connected over LAN, but I can reach server 2 only over a http proxy.
On server 2 is running a webpage, which shall be accessable on server 1, so I setup nginx for redirecting on server 2 with the following config:
server {
listen 80;
server_name server1;
location ~ ^/page {
proxy_pass http://server2:80/page;
}
}
I think this would basically works, but I need to use the proxy to reach server 2.
How can I tell nginx to use the proxy?