Simple apache read only reverse proxy on elasticsearch
Sometimes you want to have a secure access (or read only) to restfull services.
It could be for monitoring process, team access to data for debug etc.. Apache can do a great job as reverse proxy. Here is the vhost (with ip restriction too) to a elasticsearch instance. Requests are restricted to HTTP GET. This mean read only if the service is really restfull.
1 2 3 4 5 6 7 8 9 |
ServerName es.yourhost.com BalancerMember http://127.0.0.1:9200 max=1 retry=5 order deny,allow deny from all allow from 127.0.0.1 allow from 8.8.8.8 # your iporder deny,allow deny from all ProxyPass / balancer://main/ ProxyPassReverse / balancer://main/ |
Leave a Reply
Want to join the discussion?Feel free to contribute!