gpt4 book ai didi

tomcat7 - 403 访问被拒绝在 tomcat 7 上访问主机管理器

转载 作者:行者123 更新时间:2023-12-04 13:28:02 27 4
gpt4 key购买 nike

我在带有 tomcat 7 的 linux(fedora 17)机器上添加了如下用户和角色,但我仍然收到 403 拒绝访问错误。如何解决这个问题?

<role rolename="tomcat"/>
<role rolename="manager"/>
<role rolename="admin"/>
<role rolename="admin-gui"/>
<role rolename="manager-gui"/>
<user username="tomcat" password="tomcat" roles="admin_gui,manager_gui"/>
<user username="admin" password="admin" roles="admin,manager,admin_gui,manager_gui"/>
<user username="hextek" password="123456" roles="admin,admin_gui,manager,manager_gui"/>

最佳答案

检查您在使用定义中使用的角色名称。它们与标准和您定义的不同。
应该是 manager-gui

Note that for Tomcat 6.0.30 onwards, the roles required to use the manager application were changed from the single manager role to add the following four roles. (The manager role is still available but should not be used as it avoids the CSRF protection). You will need to assign the role(s) required for the functionality you wish to access.

manager-gui - allows access to the HTML GUI and the status pages
manager-script - allows access to the text interface and the status pages
manager-jmx - allows access to the JMX proxy and the status pages
manager-status - allows access to the status pages only

关于tomcat7 - 403 访问被拒绝在 tomcat 7 上访问主机管理器,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14942691/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com