Last active
November 28, 2017 16:42
-
-
Save fabiocruzcoelho/b0abd4f9f81a769d7e5906b3639adeaf to your computer and use it in GitHub Desktop.
vhost nginx proxy
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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