Rootop 服务器运维与web架构

HTTP Status 403 – Access to the requested resource has been denied

| 暂无评论

HTTP Status 403 – Access to the requested resource has been denied

——————————————————————————–

type Status report

message Access to the requested resource has been denied

description Access to the specified resource (Access to the requested resource has been denied) has been forbidden.
——————————————————————————–

Apache Tomcat/7.0.21

      tomcat 管理用户登录时,报如上错误,折腾了很久,才搞定,而且不同的版本,配置文件也是不一样的。

服务器tomcat版本为:apache-tomcat-7.0.21.tar.gz  我最终的配置内容如下:

<?xml version=’1.0′ encoding=’utf-8′?>
<tomcat-users>
  <role rolename=”admin-gui”/>
  <role rolename=”admin-script”/>
  <role rolename=”manager-gui”/>
  <role rolename=”manager-script”/>
  <role rolename=”manager-jmx”/>
  <role rolename=”manager-status”/>
  <user username=”nq” password=”nq” roles=”admin-gui,admin-script,manager-gui,manager-script,manager-jmx,manager-status”/>
</tomcat-users>

修改完tomcat-users.xml后重启tomcat服务,并且清空IE缓存密码表单等信息再次尝试登录!

如果你用了我上面的配置内容还是无法登陆,请尝试度娘及谷大爷中的其它配置代码。

原创文章,转载请注明。本文链接地址: https://www.rootop.org/pages/768.html

作者:Venus

服务器运维与性能优化

发表回复