6
我已經中tomcat-users.xml
如下:403訪問在Tomcat中拒絕
<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...
什麼可能是這種行爲的原因?提前致謝。
謝謝,它的工作。你應該在這裏的第三行添加'>'。 –
不客氣,謝謝'''我沒見過! –