Skip to content

Instantly share code, notes, and snippets.

@fabiocruzcoelho
Last active November 28, 2017 16:42
Show Gist options
  • Save fabiocruzcoelho/b0abd4f9f81a769d7e5906b3639adeaf to your computer and use it in GitHub Desktop.
Save fabiocruzcoelho/b0abd4f9f81a769d7e5906b3639adeaf to your computer and use it in GitHub Desktop.
vhost nginx proxy
upstream confluence {
server sertver_backend:8090;
keepalive 300;
}
server {
listen haproxy.fabio.com.br:80;
server_name confluence.fabio.com.br;
access_log off;
error_log /dev/null crit;
if ($host != "confluence.fabio.com.br") {
return 404;
}
location / {
proxy_pass http://confluence;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
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