Logo Mark L. Reyes
Apply a Rewrite Directive to a Solr Instance

Apply a Rewrite Directive to a Solr Instance

May 12, 2014
1 min read
Table of Contents

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. Flowchart of a RewriteRule directive that rests on website.com’s httpd.conf file.[/caption]

Problem:

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

Solutions:

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