博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
Tomcat Manager配置
阅读量:7104 次
发布时间:2019-06-28

本文共 1916 字,大约阅读时间需要 6 分钟。

401 Unauthorized

401 Unauthorized

You are not authorized to view this page. If you have not changed any configuration files, please examine the fileconf/tomcat-users.xml in your installation. That file must contain the credentials to let you use this webapp.

For example, to add the manager-gui role to a user named tomcat with a password ofs3cret, add the following to the config file listed above.

Note that for Tomcat 6.0.30 onwards, the roles required to use the manager application were changed from the singlemanager role to the following four roles. You will need to assign the role(s) required for the functionality you wish to access.

  • manager-gui - allows access to the HTML GUI and the status pages
  • manager-script - allows access to the text interface and the status pages
  • manager-jmx - allows access to the JMX proxy and the status pages
  • manager-status - allows access to the status pages only

The HTML interface is protected against CSRF but the text and JMX interfaces are not. To maintain the CSRF protection:

  • The deprecated manager role should not be assigned to any user.
  • Users with the manager-gui role should not be granted either the manager-script or manager-jmx roles.
  • If the text or jmx interfaces are accessed through a browser (e.g. for testing since these interfaces are intended for tools not humans) then the browser must be closed afterwards to terminate the session.

For more information - please see the .    


找到目录:D:\app\JavaEE\apache-tomcat-7.0.22-windows-x64\conf

修改:tomcat-users.xml

[java] 
  1. <role rolename="manager-gui"/>    
  2. <role rolename="manager-script"/>    
  3. <role rolename="manager-jmx"/>    
  4. <role rolename="manager-status"/>    
  5. <user username="admin" password="111111" roles="manager-gui"/>   
  6. <user username="tomcat" password="111111" roles="manager-script,manager-jmx,manager-status"/>  
本文转自xwdreamer博客园博客,原文链接:http://www.cnblogs.com/xwdreamer/archive/2011/11/22/2296928.html,如需转载请自行联系原作者

你可能感兴趣的文章
Centos下yum安装 apache+php环境 以及redis扩赞
查看>>
Algorithm | Vector
查看>>
mysql crash cource 书中实例
查看>>
Java Basis
查看>>
让所有人都能看懂日志,解放开发
查看>>
url传值出现中文乱码的另类解决办法
查看>>
jdk、jre、spring、java ee、java se
查看>>
zabbix自动清理30天前的数据
查看>>
客户区和非客户区
查看>>
Android调用相册拍照控件实现系统控件缩放切割图片
查看>>
【转】Excel2010中绘制流程图
查看>>
"无法启动应用程序,工作组信息文件丢失,或是已被其他用户已独占方式打开"解决办法...
查看>>
【原】oracle11G AWR使用及分析
查看>>
<20190104>关掉一些鸡肋的Win10功能
查看>>
iOS网络篇4-利用NSURLConnection实现GET/POST/HEAD请求
查看>>
linux 环境下 eas console的运行
查看>>
Rainbows! 4.4.3 发布,修复 EventMachine 问题
查看>>
USACO翻译:USACO 2012 JAN三题(2)
查看>>
Java学习之IO流总结
查看>>
LightOJ 1038 Race to 1 Again
查看>>