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

Popular posts from this blog

jquery - How can I dynamically add a browser tab? -

node.js - Getting the socket id,user id pair of a logged in user(s) -

keyboard - C++ GetAsyncKeyState alternative -