Skip to content

Instantly share code, notes, and snippets.

@slav
Created March 8, 2015 17:37
Show Gist options
  • Save slav/6b9d6b3f7a336bd91f24 to your computer and use it in GitHub Desktop.
Save slav/6b9d6b3f7a336bd91f24 to your computer and use it in GitHub Desktop.
Kibana4 nginx prefixed path
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;
}
@slav
Copy link
Author

slav commented Mar 8, 2015

Had to switch to regular expressions for config to correctly handle underscore in location by nginx.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment