Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Tomcat8.5 remotely accesses manager pages

2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Network Security >

Share

Shulou(Shulou.com)06/01 Report--

Since the company deploys a new website, it is OK to test it locally, but it will report an error if it is uploaded to the Ali cloud server and tested again, so you need to open the remote access manager page and let the developer upload and deploy the test himself.

Online search circle, unexpectedly there is no very clear manager page to open the tutorial, their own search found the answer.

Direct remote login to the manager page will prompt you to change the context.xml file under the manger project if the address is rejected. This file is in the tomcat/webapps/manager/MATA-INF/ folder. The default content is:

There is an attribute under the context tag that is

Org.apache.catalina.valves.RemoteAddrValve

This is to set remote filtering properties, this property has two attribute values can be set, allow and deny, which is equivalent to access whitelist and blacklist, also equivalent to ACL access filtering, allow and deny values can be written IP with regular expressions to match, can also write domain names and computer names.

Comment out this attribute directly and you can access the manager page directly. Of course, I do not recommend this. The user name and password of the manager page can be easily cracked, causing others to upload projects or other things at will, so it is best to have filtering if there is no special need.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Network Security

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report