tomcat 7 管理器应用程序访问被拒绝

编程入门 行业动态 更新时间:2024-10-27 10:28:55
本文介绍了tomcat 7 管理器应用程序访问被拒绝的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

限时送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:关键词]

本文发布于:2023-04-30 04:09:16,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1389255.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:管理器   应用程序   被拒   tomcat

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!