php - How to restrict global access for solr admin DIRECTLY FROM BROWSER -
when run following url can see permissions open
http://localhost:8983/solr/#/
i installed solr on development server
http://www.xyz.com:8983/solr/#/
here, can open , can destroy documents. how can make password protected ??? or other solution on server.
edited
i have added code results in 503 error. can check mistake here
<web-app id="/solr" document-directory="/home/admin1/solr-4.2.1/example/" archive-path="/home/admin1/solr-4.2.1/example/webapps/solr.war" character-encoding="utf-8"> <system-property solr.solr.home="/home/admin1/solr-4.2.1/example/solr/collection1/data" /> <authenticator type="com.caucho.server.security.xmlauthenticator"> <init> <user>user:user12345:user,admin</user> <password-digest>none</password-digest> </init> </authenticator> <security-constraint url-pattern='/admin/*' role-name='user'/> </web-app>
i have added in
example/solr-webapp/webapp/web-inf/web.xml
the solr security page on solr wiki has lot of suggestions ways restrict access or parts of solr.
Comments
Post a Comment