我在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...
什么可能导致这种行为?提前感谢。