marklreyes / RewriteDirectiveApacheSolr

Use an Apache Rewrite Directive to protect an exposed Solr endpoint.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

#Apply a Rewrite Directive to a Solr Instance#

After exposing the Solr endpoint with a reverse proxy, it’s important to note that it also exposes the Solr admin panel to the end-user. This is not desired.

Flowchart of a RewriteRule directive that rests on website.com’s httpd.conf file.

##Problem##

  • Solr’s admin panel becomes exposed from the reverse proxy.

##Solution##


RewriteRule ^/solr/$ / [R=301,L,DPI]

About

Use an Apache Rewrite Directive to protect an exposed Solr endpoint.