Unable to configure Nginx as a reverse proxy for elasticsearch on another server

Hi,

I'm trying to use Kibana on a server A to access elasticsearch on a
server B. elasticsearch is protected with a basic auth authentication on
server B.

Kibana is also protected with basic authentication (and the same password)
on server A.

I'm using this configuration
https://gist.github.com/hlassiege/179866de70c3d8d992ab (inspired from here
https://github.com/johnhamelink/ansible-kibana/blob/master/templates/nginx.conf.j2
)

I'm just trying the redirection by typing the following address :
http://A.com/es/_search http://a.com/es/_search and I get a error 500. In
the log I have :

2014/06/01 16:45:55 [error] 3721#0: *1 rewrite or internal redirection
cycle while internally redirecting to "/es/_search", client: 192.168.50.1,
server: A.com, request: "GET /es/_search HTTP/1.1", host: "A.com"

Any idea what could be wrong ?

Regards,

Hugo

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/adc664a1-6f5f-4eac-acd5-2d69a6868200%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.