Skip to content

Instantly share code, notes, and snippets.

@rashidkpc
Created May 13, 2013 17:13
Show Gist options
  • Save rashidkpc/5569854 to your computer and use it in GitHub Desktop.
Save rashidkpc/5569854 to your computer and use it in GitHub Desktop.
server {
listen *:80 ;
server_name kibana.myhost.org;
access_log /var/log/nginx/kibana.myhost.org.access.log;
location ~ ^/_aliases$ {
proxy_pass http://127.0.0.1:9200;
proxy_read_timeout 90;
}
location ~ ^/.*/_search$ {
proxy_pass http://127.0.0.1:9200;
proxy_read_timeout 90;
}
location / {
root /usr/share/kibana3;
index index.html index.htm index.php ;
}
location ~ ^/kibana-int/dashboard/.*$ {
proxy_pass http://127.0.0.1:9200;
proxy_read_timeout 90;
auth_basic "Restricted";
auth_basic_user_file /etc/nginx/conf.d/kibana.myhost.org.htpasswd;
}
location ~ ^/kibana-int/temp.*$ {
proxy_pass http://127.0.0.1:9200;
proxy_read_timeout 90;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment