Last active
August 23, 2017 14:50
-
-
Save jalogisch/d4586bb5e568b0507e71a0815ac61e7d to your computer and use it in GitHub Desktop.
Graylog behind NGINX Proxy in a sub-directory
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
# Graylog in Subdirectorie | |
# | |
# server.conf settings: | |
# rest_listen_uri = http://192.168.10.11:9000/serveurgraylog/api/ | |
# web_listen_uri = http://192.168.10.11:9000/serveurgraylog/ | |
# | |
server { | |
listen 80 ; | |
server_name g1422.lan; | |
location /serveurgraylog/ { | |
proxy_set_header Host $http_host; | |
proxy_set_header X-Forwarded-Host $host; | |
proxy_set_header X-Forwarded-Server $host; | |
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | |
proxy_set_header X-Graylog-Server-URL http://$server_name/serveurgraylog/api; | |
proxy_pass http://192.168.10.11:9000/serveurgraylog/; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment