From 1baebe1d54bb0dce20b47b85f2f0564b945a6c29 Mon Sep 17 00:00:00 2001 From: Daniel Werdermann Date: Wed, 26 Feb 2014 16:51:00 +0100 Subject: [PATCH] fixe nginx location rule for _mapping If you use a nginx proxy and elasticsearch with log4j you can see the following error message: ``` Error No index found at http://my.domain.local:80/logstash-2014.02.26/_mapping/field/*. Please create at least one index.If you're using a proxy ensure it is configured correctly. ``` Thats because the strict nginx location mapping rule. --- sample/nginx.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sample/nginx.conf b/sample/nginx.conf index bedc55713caa8..b4a0fac8bee7a 100644 --- a/sample/nginx.conf +++ b/sample/nginx.conf @@ -37,7 +37,7 @@ server { proxy_pass http://127.0.0.1:9200; proxy_read_timeout 90; } - location ~ ^/.*/_mapping$ { + location ~ ^/.*/_mapping { proxy_pass http://127.0.0.1:9200; proxy_read_timeout 90; }