solr基于tomcat增加主界面登录权限
2016-08-17 19:04
274 查看
tomcat-user.xml增加下面标签(用户名,密码,角色) <user username="admin" password="new-password" roles="admin"/>
在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>
重启服务器即可
参考http://www.cnblogs.com/wudi521/p/5570577.html
相关文章推荐
- Solr的主界面加登录权限
- Tomcat如何修改登录权限
- 基于Filter<过滤器>登录权限验证设计心得
- Solr-----2、Solr后台管理配置登录权限
- 简单两步快速实现shiro的配置和使用,包含登录验证、角色验证、权限验证以及shiro登录注销流程(基于spring的方式,使用maven构建)
- 部署基于tomcat 8 的solrCloud 5.5集群
- 基于所提供的凭据,您没有权限查看此目录或网页;HTTP 错误 401.2 - 未授权:服务器配置导致登录失败
- 基于SSH实现员工管理系统登录权限的过滤器与拦截器的综合使用
- solr-web界面增加登录认证
- 基于权限安全框架Shiro的登录验证功能实现
- 基于tomcat的solr4.0集群部署
- 增加普通用户的sudo权限,禁止root用户登录
- SpringMVC+Apache Shiro+JPA(hibernate)案例教学(二)基于SpringMVC+Shiro的用户登录权限验证
- 基于角色的权限管理系统--前端登录数据js加密后端解密(DES)
- mysql登录连接、增加用户、修改权限
- tomcat 7.0.21 后台权限登录
- 基于控制权限和登录验证跳转的django登录界面的实现
- 基于云端的通用权限管理系统,SAAS服务,基于SAAS的权限管理,基于SAAS的单点登录SSO,企业单点登录,企业系统监控,企业授权认证中心
- 基于Tomcat的Solr3.5集群部署
- 基于权限安全框架Shiro的登录验证功能实现