Skip to content

Instantly share code, notes, and snippets.

@gelias
Created July 17, 2017 03:36
Show Gist options
  • Save gelias/640ea77c7a17262fa71cb854472d03e7 to your computer and use it in GitHub Desktop.
Save gelias/640ea77c7a17262fa71cb854472d03e7 to your computer and use it in GitHub Desktop.
server {
listen 80;
server_name alias.dominio.com 127.0.0.1;
proxy_redirect off;
proxy_buffering off;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
location / {
proxy_pass http://127.0.0.1:5555;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment