Skip to content

Instantly share code, notes, and snippets.

@eredding-rmn
Forked from mathieue/reverse.es
Created May 28, 2014 03:01
Show Gist options
  • Save eredding-rmn/6c9bc0509c6379241241 to your computer and use it in GitHub Desktop.
Save eredding-rmn/6c9bc0509c6379241241 to your computer and use it in GitHub Desktop.
<VirtualHost *:80>
ServerName es.yourhost.com
<Proxy balancer://main>
BalancerMember http://127.0.0.1:9200 max=1 retry=5
<Limit GET >
order deny,allow
deny from all
allow from 127.0.0.1
allow from 8.8.8.8 # your ip
</Limit>
<Limit POST PUT DELETE>
order deny,allow
deny from all
</Limit>
</Proxy>
ProxyPass / balancer://main/
ProxyPassReverse / balancer://main/
</VirtualHost>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment