On 14 February 2013 14:05, Bayu Widyasanyata <bwidyasany...@gmail.com> wrote:
> Hi,
>
> I'm sure it's an "old" question..
> I just want protecting Admin page (/solr) with Basic Authentication.
> But I can't found fine answer yet out there.
>
> I use Solr 4.1 with Apache Tomcat/7.0.35.
[...]

The easiest way to do this with Tomcat7 is:
1. Install the manager app, and set up roles in
    conf/tomcat-users.xml
2. A UserDatabaseRealm should already be defined in
    conf/server.xml
3. Depending on how you installed Solr, there should be a folder
    like webapps/solr/WEB-INF/ . In that folder, edit web.xml, and
    add <security-constraint> and <security-role> tags. The entries
    for the latter should match the entries in step 1.

These links should be of help:
http://tomcat.apache.org/tomcat-7.0-doc/realm-howto.html
http://www.tomcatexpert.com/ask-the-experts/basic-auth-configuration-tomcat-7-https

Regards,
Gora

Reply via email to