Tomcat-user.xml Add the following tags (user name, password, role)
<username= "admin" password= "New-password" roles = "Admin" />
Increase in D:\apache-tomcat-6.0.37-windows-x64\apache-tomcat-6.0.37\webapps\solr\WEB-INF\web.xml
<Security-constraint> <web-resource-collection> <Web-resource-name>Restrict access to SOLR admin</Web-resource-name> <Url-pattern>/*</Url-pattern> <Http-method>DELETE</Http-method> <Http-method>GET</Http-method> <Http-method>POST</Http-method> <Http-method>PUT</Http-method> </web-resource-collection> <Auth-constraint> <Role-name>Admin</Role-name> </Auth-constraint> <User-data-constraint> <Transport-guarantee>NONE</Transport-guarantee> </User-data-constraint></Security-constraint><Login-config> <Auth-method>BASIC</Auth-method> <Realm-name>Default</Realm-name></Login-config>
Restart the server to
Reference http://www.cnblogs.com/wudi521/p/5570577.html
SOLR increases main interface login rights based on Tomcat