最新文章专题视频专题问答1问答10问答100问答1000问答2000关键字专题1关键字专题50关键字专题500关键字专题1500TAG最新视频文章推荐1 推荐3 推荐5 推荐7 推荐9 推荐11 推荐13 推荐15 推荐17 推荐19 推荐21 推荐23 推荐25 推荐27 推荐29 推荐31 推荐33 推荐35 推荐37视频文章20视频文章30视频文章40视频文章50视频文章60 视频文章70视频文章80视频文章90视频文章100视频文章120视频文章140 视频2关键字专题关键字专题tag2tag3文章专题文章专题2文章索引1文章索引2文章索引3文章索引4文章索引5123456789101112131415文章专题3
当前位置: 首页 - 科技 - 知识百科 - 正文

HTTPStatus403–Accesstotherequestedresourcehasbeen

来源:动视网 责编:小采 时间:2020-11-09 07:30:57
文档

HTTPStatus403–Accesstotherequestedresourcehasbeen

HTTPStatus403–Accesstotherequestedresourcehasbeen:访问地址: http://localhost:8080/manager/status http://localhost:8080/manager/html 错误提示 HTTP Status 403 – Access to the requested resource has been denied type Status report messag
推荐度:
导读HTTPStatus403–Accesstotherequestedresourcehasbeen:访问地址: http://localhost:8080/manager/status http://localhost:8080/manager/html 错误提示 HTTP Status 403 – Access to the requested resource has been denied type Status report messag


解决方法:

先进入manager所在目录
[root@localhost tomcat]# cd webapps/manager/WEB-INF/
查看 web.xml
[root@localhost WEB-INF]# more web.xml

 
 
 
 
 HTML Manager interface (for humans)
 /html/* 对应:http://localhost:8080/manager/html
 
 
 manager-gui 定义了访问这个页面的角色名:manage-gui
 
 
 
 
 Text Manager interface (for scripts)
 /text/*
 
 
 manager-script
 
 
 
 
 JMX Proxy interface
 /jmxproxy/*
 
 
 manager-jmx
 
 

 
 
 Status interface
 /status/* 对应:http://localhost:8080/manager/status 
 
 
 manager-gui 
 manager-script
 manager-jmx
 manager-status
 
 

进入host-manager所在目录
[root@localhost tomcat]# cd webapps/host-manager/WEB-INF/
查看 web.xml
[root@localhost WEB-INF]# more web.xml

 
 
 HTMLHostManager commands
 /html/* 对应:http://192.168.14.219:8080/host-manager/html
 
 
 
 admin-gui 定义了管理角色名称
 
 
 
 
 The role that is required to log in to the Host Manager Application HTML
 interface
 
 admin-gui
 
 
 
 The role that is required to log in to the Host Manager Application text
 interface
 
 admin-script
 

编辑Tomcat用户配置文件,添加角色
[root@localhost tomcat]# vi conf/tomcat-users.xml



 that surrounds them.
-->

 

  
 
 
 
 
 
--> 这里有个注释符号去掉,是下面的生效

重启 tomcat

[root@localhost tomcat]# ./bin/shutdown.sh
[root@localhost tomcat]# ./bin/startup.sh

总结:
虚拟目录/WEB-INF/web.xml一般定义了访问这个目录的安全角色名称,得知这个安全角色名称后便可在conf/tomcat-users.xml添加对应的访问角色,获得访问权限。(于是这里也是个黑客可以利用的后门。。)

文档

HTTPStatus403–Accesstotherequestedresourcehasbeen

HTTPStatus403–Accesstotherequestedresourcehasbeen:访问地址: http://localhost:8080/manager/status http://localhost:8080/manager/html 错误提示 HTTP Status 403 – Access to the requested resource has been denied type Status report messag
推荐度:
标签: the http 403
  • 热门焦点

最新推荐

猜你喜欢

热门推荐

专题
Top