Skip to content

Instantly share code, notes, and snippets.

@liujuncn
liujuncn / nginx-elasticsearch-proxy.conf
Created June 29, 2012 03:28 — forked from karmi/nginx-elasticsearch-proxy.conf
Route requests to ElasticSearch to authenticated user's own index with an Nginx reverse-proxy
# Run me with:
#
# $ nginx -p /path/to/this/file/ -c nginx.conf
#
# All requests are then routed to authenticated user's index, so
#
# GET http://user:password@localhost:8080/_search?q=*
#
# is rewritten to:
#