在tomcat 7.0.42上拒绝403访问 [英] 403 access denied on tomcat 7.0.42

查看:184
本文介绍了在tomcat 7.0.42上拒绝403访问的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在访问Tomcat Manager App时遇到错误 403访问被拒绝tomcat 7.0.42

I am having error 403 access denied on tomcat 7.0.42 while accessing Tomcat Manager App.

这就是我在 tomcat-user.xml 文件。
我尝试过一遍又一遍地改变角色但是没有用。

This is what I have in tomcat-user.xml file. I have tried changing roles over and over but did not work.

注意: - 我从NetBeans 7.3.1启动/停止tomcat

<?xml version="1.0" encoding="UTF-8"?>
<tomcat-users>
 <role rolename="manager-script"/>
<user username="admin" password="admin" roles="manager-script" />
</tomcat-users>


推荐答案

删除经理脚本并添加manager-gui ,manager-status。

Remove the manager-script and add "manager-gui,manager-status".

要访问HTML界面,您需要具有manager-gui角色,但是您不能拥有manager-script或manager-jmx角色。

To access the HTML interface, you need to have the manager-gui role, but you must NOT have the manager-script or manager-jmx roles.

<tomcat-users>
  <role rolename="manager-script"/>
  <role rolename="manager-gui"/>
  <role rolename="manager-jmx"/>
  <role rolename="manager-status"/>
  <user username="tomcat" password="tomcat" roles="manager-gui,manager-status"/>
</tomcat-users>

关于来自http://tomcat.apache.org/tomcat-7.0-doc/manager-howto.html


  • manager-gui - 访问HTML界面。

  • manager-status - 仅访问服务器状态页面。

  • manager-script - 访问本文档中描述的工具友好的纯文本界面,以及Server
    Status页面。

  • manager-jmx - 访问JMX代理接口和服务器状态页面。

  • manager-gui — Access to the HTML interface.
  • manager-status — Access to the "Server Status" page only.
  • manager-script — Access to the tools-friendly plain text interface that is described in this document, and to the "Server Status" page.
  • manager-jmx — Access to JMX proxy interface and to the "Server Status" page.

这篇关于在tomcat 7.0.42上拒绝403访问的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆