Skip to content

Commit

Permalink
Match and apply LocationMatch rules
Browse files Browse the repository at this point in the history
  • Loading branch information
kopf committed Oct 16, 2013
1 parent 590b213 commit d399387
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions sample/apache_ldap.conf
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,15 @@
</Proxy>

# Proxy for _aliases and .*/_search
<LocationMatch "^(/_aliases|/_nodes|.*/_search|.*/_mapping)$">
ProxyPassMatch http://127.0.0.1:9200
ProxyPassReverse http://127.0.0.1:9200
<LocationMatch "^/(_nodes|_aliases|_search|.*/_search|_mapping|.*/_mapping)$">
ProxyPassMatch http://127.0.0.1:9200/$1
ProxyPassReverse http://127.0.0.1:9200/$1
</LocationMatch>

# Proxy for kibana-int/{dashboard,temp} stuff (if you don't want auth on /, then you will want these to be protected)
<LocationMatch "^(/kibana-int/dashboard/|/kibana-int/temp).*$">
ProxyPassMatch http://127.0.0.1:9200
ProxyPassReverse http://127.0.0.1:9200
<LocationMatch "^/(kibana-int/dashboard/|kibana-int/temp)(.*)$">
ProxyPassMatch http://127.0.0.1:9200/$1$2
ProxyPassReverse http://127.0.0.1:9200/$1$2
</LocationMatch>

# Optional disable auth for a src IP (eg: your monitoring host or subnet)
Expand Down

1 comment on commit d399387

@areyoutoo
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey, thanks! I've been struggling to configure an Apache proxy since yesterday, and this was my missing link.

Please sign in to comment.