Merge "Logstash: Modifying rewrite rules to allow kibana 3"
This commit is contained in:
commit
76f6ad11a7
@ -10,11 +10,11 @@
|
|||||||
|
|
||||||
<IfModule mod_proxy.c>
|
<IfModule mod_proxy.c>
|
||||||
<% if @proxy_elasticsearch == true %>
|
<% if @proxy_elasticsearch == true %>
|
||||||
# Proxy GETs for elasticsearch _aliases, .*/_status, .*/_search,
|
# Proxy GETs for elasticsearch .*/_aliases, .*/_status, .*/_search,
|
||||||
# .*/_mapping, _cluster/health, and _nodes.
|
# .*/_mapping, .*/_mapping/field/.*, _cluster/health, and _nodes.
|
||||||
RewriteEngine on
|
RewriteEngine on
|
||||||
RewriteCond %{REQUEST_METHOD} GET
|
RewriteCond %{REQUEST_METHOD} GET
|
||||||
RewriteRule ^/elasticsearch/(_aliases|(.*/)?_status|(.*/)?_search|(.*/)?_mapping|_cluster/health|_nodes)$ http://<%= scope.lookupvar("::logstash::web::discover_nodes")[0] %>/$1 [P]
|
RewriteRule ^/elasticsearch/((.*/)?_aliases|(.*/)?_status|(.*/)?_search|(.*/)?_mapping|(.*/)?_mapping/field/(.*)?|_cluster/health|_nodes)$ http://<%= scope.lookupvar("::logstash::web::discover_nodes")[0] %>/$1 [P]
|
||||||
RewriteCond %{REQUEST_METHOD} POST
|
RewriteCond %{REQUEST_METHOD} POST
|
||||||
RewriteRule ^/elasticsearch/(_aliases|(.*/)?_search)$ http://<%= scope.lookupvar("::logstash::web::discover_nodes")[0] %>/$1 [P]
|
RewriteRule ^/elasticsearch/(_aliases|(.*/)?_search)$ http://<%= scope.lookupvar("::logstash::web::discover_nodes")[0] %>/$1 [P]
|
||||||
RewriteCond %{REQUEST_METHOD} OPTIONS
|
RewriteCond %{REQUEST_METHOD} OPTIONS
|
||||||
|
Loading…
Reference in New Issue
Block a user