问题描述
限时送ChatGPT账号..当我第一次进入管理器应用程序 http://localhost:8080/manager/html
时,有一个浏览器提示登录窗口要求输入用户名和密码.输入错误的用户名和密码,页面返回403(访问被拒绝).
When I first go to the manager app http://localhost:8080/manager/html
, there was a browser prompt login window asking for username and password. By entering the wrong username and password, the page returned 403(access denied).
所以我用谷歌搜索了一下并设置如下:
So I googled a bit and setup as follows:
<role rolename="manager-gui" />
<user username="admin" password="tomcat" roles="manager-gui"/>
<!-- these 2 lines was there before my editing -->
<user password="tom" roles="manager-script,admin" username="tom"/>
<user password="tomcat" roles="manager-script,admin" username="tomcat"/>
重启tomcat后,这次manager app直接显示403页面,不需要输入用户名和密码.所以我有点困惑.此管理器应用程序使用哪种身份验证?以及如何登录管理器应用?
After restarting tomcat, the manager app this time shows 403 page directly without asking for username and password. So I'm a bit confused. What kind of authentication is this manager app using? And how can I login to the manager app?
推荐答案
这与浏览器及其保留活动登录的策略有关.对于 Firefox,您可以转到工具"->清除最近历史记录..."并清除活动登录".之后刷新您的经理应用会弹出您要求的提示.
This has to do with the browser and its policy to preserve active logins. For Firefox you can go to ''Tools'' -> ''Clear Recent History...'' and clear ''Active Logins''. Refreshing your manager app after that will pop up the prompt you were asking for.
干杯,β
这篇关于tomcat 7 管理器应用程序访问被拒绝的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
更多推荐
[db:关键词]
发布评论