相关疑难解决方法(0)

403 Tomcat中拒绝访问

我有以下内容tomcat-users.xml:

<tomcat-users>
<role rolename="admin"/>
<role rolename="manager"/>
<user username="aname" password="apassword" roles="admin,manager"/>
</tomcat-users>
Run Code Online (Sandbox Code Playgroud)

如果我去http://localhost:8080/manager/html,我被问及用户名和密码(据我所知,关于这些tomcat-users.xml),但是当我输入它们时,我得到:

403 Access Denied
You are not authorized to view this page.

If you have already configured the Manager application to allow access and you have used your browsers back button...
Run Code Online (Sandbox Code Playgroud)

这种行为可能是什么原因?提前致谢.

linux tomcat

8
推荐指数
1
解决办法
2万
查看次数

标签 统计

linux ×1

tomcat ×1