#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.
##Problem##
- Solr’s admin panel becomes exposed from the reverse proxy.
##Solution##
- Perform a redirect to website.com’s homepage.
- RewriteRule directive, mod_rewrite – Apache HTTP Server.
RewriteRule ^/solr/$ / [R=301,L,DPI]