diff --git a/sample/apache_ldap.conf b/sample/apache_ldap.conf index e290d5697f31aa..f7df159e33527b 100755 --- a/sample/apache_ldap.conf +++ b/sample/apache_ldap.conf @@ -31,15 +31,15 @@ # Proxy for _aliases and .*/_search - - ProxyPassMatch http://127.0.0.1:9200 - ProxyPassReverse http://127.0.0.1:9200 + + ProxyPassMatch http://127.0.0.1:9200/$1 + ProxyPassReverse http://127.0.0.1:9200/$1 - + # Proxy for kibana-int/{dashboard,temp} stuff (if you don't want auth on /, then you will want these to be protected) - - ProxyPassMatch http://127.0.0.1:9200 - ProxyPassReverse http://127.0.0.1:9200 + + ProxyPassMatch http://127.0.0.1:9200/$1$2 + ProxyPassReverse http://127.0.0.1:9200/$1$2 # Optional disable auth for a src IP (eg: your monitoring host or subnet) diff --git a/sample/nginx.conf b/sample/nginx.conf index 6015897cf7bd52..b1e2f362e60f5b 100755 --- a/sample/nginx.conf +++ b/sample/nginx.conf @@ -25,6 +25,10 @@ server { proxy_pass http://127.0.0.1:9200; proxy_read_timeout 90; } + location ~ ^/_nodes$ { + 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; @@ -53,4 +57,4 @@ server { auth_basic_user_file /etc/nginx/conf.d/kibana.myhost.org.htpasswd; } } -} \ No newline at end of file +}