Apache SOLR Access Control

Source: Internet
Author: User
Tags apache solr solr

To add SOLR access permissions in tomcat6, follow these steps:

Edit tomcat6/Catalina/localhost/SOLR. xml

 <  Context  Docbase  = "/Var/SOLR. War"  Debug  = "0"  Privileged  = "True"  Allowlinking  = "True"  Crosscontext  = "True"  > 

< Environment Name = "SOLR/home" Type = "Java. Lang. String" Value = "/Var/SOLR" Override = "True" />

< Valve Classname = "Org. Apache. Catalina. Valves. remoteaddrvalve" Allow = "192.168.1.100, localhost, 192.168.1.103, 127.0.0.1" />

< Valve Classname = "Org. Apache. Catalina. Valves. remoteaddrvalve" Deny = "192.168.1.105" />

</ Context >

Refer to Tomcat configuration document: http://tomcat.apache.org/tomcat-6.0-doc/config/valve.html#Remote_Address_Filter

To make the preceding configuration take effect, you need to re-enable the tomcat security mechanism.

Edit sudo VI/etc/default/tomcat6

Comment out the last sentenceTomcat6_security = No


For more information about security mechanisms, refer to SOLR wiki: http://wiki.apache.org/solr/SolrSecurity

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.