Skip to content

Instantly share code, notes, and snippets.

@ronsuez
Created April 15, 2015 07:37
Show Gist options
  • Save ronsuez/c3faa544e2f047bbf366 to your computer and use it in GitHub Desktop.
Save ronsuez/c3faa544e2f047bbf366 to your computer and use it in GitHub Desktop.
Nginx Reverse Proxy Template
server {
listen 80;
server_name server_name;
location / {
proxy_set_header Host $host;
proxy_set_header X-REAL-IP $remote_addr;
proxy_pass http://host:port/;
proxy_buffering off;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment