Skip to content

Instantly share code, notes, and snippets.

@djodjoni
Forked from mathieue/reverse.es
Last active August 29, 2015 14:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save djodjoni/175ada42cbd3f43f3945 to your computer and use it in GitHub Desktop.
Save djodjoni/175ada42cbd3f43f3945 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