Skip to content

Instantly share code, notes, and snippets.

@somat
Created January 26, 2015 10:00
Show Gist options
  • Save somat/0ac4b9ca6448cf177a35 to your computer and use it in GitHub Desktop.
Save somat/0ac4b9ca6448cf177a35 to your computer and use it in GitHub Desktop.
Nginx configuration for reverse proxy
server {
listen 80;
server_name domain.com;
location / {
proxy_pass http://localhost:8090/;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment