我有以下内容tomcat-users.xml
:
<tomcat-users>
<role rolename="admin"/>
<role rolename="manager"/>
<user username="aname" password="apassword" roles="admin,manager"/>
</tomcat-users>
如果我去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...
这种行为的原因可能是什么?提前致谢。