Skip to content

Instantly share code, notes, and snippets.

Created June 10, 2014 18:05
Show Gist options
  • Save anonymous/48407244d617debe3108 to your computer and use it in GitHub Desktop.
Save anonymous/48407244d617debe3108 to your computer and use it in GitHub Desktop.
<VirtualHost *:80>
ServerAdmin systems@example.com
ServerName search.example.com
ProxyPass / http://127.0.0.1:9200/ timeout=90 retry=5
ProxyPassReverse / http://127.0.0.1:9200/ timeout=90 retry=5
<LocationMatch "^/(?!status)">
AuthType Basic
AuthName "Authentication Required"
AuthUserFile "/etc/htpasswd/.htpasswd"
Require valid-user
Order allow,deny
Allow from all
</LocationMatch>
</VirtualHost>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment