upstream $PROXY_NAME {
server 127.0.0.1:$PROXY_PORT;
}
server {
location / {
proxy_set_header Host $host;
proxy_set_header Proxy "";
proxy_set_header X-Real-IP $remote_addr;
proxy_pass http://$PROXY_NAME;
}
}
Last active
July 29, 2016 10:54
-
-
Save jkullick/6301c2dbb3d6a55395d27f9cb8026c77 to your computer and use it in GitHub Desktop.
Nginx Reverse Proxy Configuration
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment