Created
March 8, 2015 17:37
-
-
Save slav/6b9d6b3f7a336bd91f24 to your computer and use it in GitHub Desktop.
Kibana4 nginx prefixed path
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
location ~* /kb4/.* { | |
rewrite ^/kb4/(.*) /$1 break; | |
proxy_pass http://127.0.0.1:5601; | |
proxy_set_header Host $host; | |
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | |
proxy_send_timeout 600s; | |
proxy_read_timeout 600s; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Had to switch to regular expressions for config to correctly handle underscore in location by nginx.