Skip to content

Instantly share code, notes, and snippets.

@Finkregh
Created April 11, 2013 13:45
Show Gist options
  • Save Finkregh/5363493 to your computer and use it in GitHub Desktop.
Save Finkregh/5363493 to your computer and use it in GitHub Desktop.
running kibana behind nginx as reverse-proxy (replace '/kibana' with '', if you do not want to access kibana via /kibana)
location /kibana {
# rewrite before passing to proxy
rewrite /kibana/(.*) /$1 break;
proxy_pass http://127.0.0.1:5601;
# include nginx' proxy-defaults
include proxy_params;
# serve static stuff directly from the static-directory
location /kibana/favicon.ico {
alias /foo/Kibana-0.2.0/static/favicon.ico;
}
location /kibana/images {
alias /foo/Kibana-0.2.0/static/images;
}
location /kibana/lib {
alias /foo/Kibana-0.2.0/static/lib;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment