Create a gist now

Instantly share code, notes, and snippets.

egeek.dk - Password protect Solr admin
<web-resource-collection>
<web-resource-name>Solr Lockdown</web-resource-name>
<url-pattern>/</url-pattern>
</web-resource-collection>
<auth-constraint>
<role-name>solr_admin</role-name>
<role-name>admin</role-name>
</auth-constraint>
</security-constraint>
<login-config>
<auth-method>BASIC</auth-method>
<realm-name>Solr</realm-name>
@studiotwelve

this seems to be truncated? there is no opening tag for </security-constraint> or closing tag for <login-config>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment