Tomcat 8 Manager App 上的 403 访问被拒绝,而不提示输入用户/密码

编程入门 行业动态 更新时间:2024-10-24 02:02:01
本文介绍了Tomcat 8 Manager App 上的 403 访问被拒绝,而不提示输入用户/密码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

限时送ChatGPT账号..

我已经根据 this,我有以下 tomcat-users.xml 文件:

I have set up tomcat 8 according to this, and I have the following tomcat-users.xml file:

<?xml version="1.0" encoding="UTF-8"?>
<tomcat-users xmlns="http://tomcat.apache/xml"
              xmlns:xsi="http://www.w3/2001/XMLSchema-instance"
              xsi:schemaLocation="http://tomcat.apache/xml tomcat-users.xsd"
              version="1.0"> 
  <role rolename="manager-gui"/>
  <role rolename="manager-script"/>

  <user username="notadmin" password="not_real_pass" roles="manager-gui"/>
  <user username="cargo" password="not_real_pass" roles="manager-script"/>
<tomcat-users/>

当我尝试访问管理器应用程序时,我被 403 拒绝,没有任何提示输入用户名和密码.

When I try to access the Manager App, I get rejected with 403 without any prompt for username and password.

我在配置中遗漏了什么?

What did I miss in the config?

Edit1:添加了完整的 xml 文件.

推荐答案


可以在此处

看起来这个问题可以在 unix 机器上按照提到的教程重现.还注意到作者使用了 TC 8.0.33
Win(和 OSX)没有这样的问题,至少在我的环境中:

Looks like this issue can be reproduced while folowing mentioned tutorial on unix machines. Also noticed that author uses TC 8.0.33
Win (and OSX) do not have such issue, at least on my env:

Server version:        Apache Tomcat/8.5.4
Server built:          Jul 6 2016 08:43:30 UTC
Server number:         8.5.4.0
OS Name:               Windows 8.1
OS Version:            6.3
Architecture:          amd64
Java Home:             C:\TOOLS\jdk1.8.0_101\jre
JVM Version:           1.8.0_101-b13
JVM Vendor:            Oracle Corporation
CATALINA_BASE:         C:\TOOLS\tomcat\apache-tomcat-8.5.4
CATALINA_HOME:         C:\TOOLS\tomcat\apache-tomcat-8.5.4

tomcat-users.xml修改后添加角色和用户Tomcat Web Application Manager可以在Tomcat/8.5.4上访问.

After tomcat-users.xml is modified by adding role and user Tomcat Web Application Manager can be accessed on Tomcat/8.5.4.

这篇关于Tomcat 8 Manager App 上的 403 访问被拒绝,而不提示输入用户/密码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

更多推荐

[db:关键词]

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

发布评论

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

>www.elefans.com

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