Skip to content

Instantly share code, notes, and snippets.

@jkullick
Last active July 29, 2016 10:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jkullick/6301c2dbb3d6a55395d27f9cb8026c77 to your computer and use it in GitHub Desktop.
Save jkullick/6301c2dbb3d6a55395d27f9cb8026c77 to your computer and use it in GitHub Desktop.
Nginx Reverse Proxy Configuration
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;
  }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment