From a428f9e5deb100e0d7a1c6b210cb41127dfd24c8 Mon Sep 17 00:00:00 2001 From: Rashid Khan Date: Fri, 6 Sep 2013 14:38:01 -0700 Subject: [PATCH] Fix nginx.conf after switching dashboard load to GET --- sample/nginx.conf | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/sample/nginx.conf b/sample/nginx.conf index 50a365ade84..3af4ea2d0b6 100644 --- a/sample/nginx.conf +++ b/sample/nginx.conf @@ -38,13 +38,19 @@ server { 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; + limit_except GET { + proxy_pass http://127.0.0.1:9200; + 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; - auth_basic "Restricted"; - auth_basic_user_file /etc/nginx/conf.d/kibana.myhost.org.htpasswd; + limit_except GET { + proxy_pass http://127.0.0.1:9200; + auth_basic "Restricted"; + auth_basic_user_file /etc/nginx/conf.d/kibana.myhost.org.htpasswd; + } } -} \ No newline at end of file +}