Security Specifications for Tomcat

Source: Internet
Author: User

Here's a look at some of the Tomcat security specifications that we need to be aware of in our daily work:

One: Protection of Telnet management port

Category

Configuration content and its description

Standard configuration

Note

Telnet

Protection of management ports

Force

(1) The default port in the configuration file is 8005 management port, so in order not to attack easily, the best port is changed to other (more than 1024, the proposed interval is 8000~8999)

(2) Change shutdown

Instruction for other strings

<server port= "=8517" shutdown= "Dangerous" >

II: Protection of AJP management ports:

Category

Configuration content and its description

Standard configuration

Note


Protection of the AJP connection port

(1) Modify the default AJP 8009 port to a port that is not easy to conflict with more than 1024.

(2) Restrict AJP port access to only the server on the line through the iptables rule

<connector port= "8553 otocol=" ajp/1.3 "redirectport=" 8443 "/>

The above is recommended configuration, need to modify according to production requirements, port requirements between 8000~8999, the purpose of the protection port is to prevent the offline test traffic is MOD_JK forwarded to the online Tomcat server.

We can use the way of HTTP, but also choose AJP way. If you choose the AJP way, you can change it in the way above.

Third: Prohibit the use of the management side

Category

Configuration content and its description

Standard configuration

Note

Disabling the management side

Four: Down right start

Category

Configuration content and its description

Standard configuration

Note

down right start

V: Access control for file list

Category

Configuration content and its description

Standard configuration

Note

Disabling the management side

VI: The release information is hidden

Category

Configuration content and its description

Standard configuration

Note

Disabling the management side

Seven: Server header rewrite

Category

Configuration content and its description

Standard configuration

Note

Disabling the management side

Eight: Access restrictions

Category

Configuration content and its description

Standard configuration

Note

Disabling the management side

IX: Permission retraction of the start-stop script

Category

Configuration content and its description

Standard configuration

Note

Disabling the management side

Ten: Specification of Access log format:

Category

Configuration content and its description

Standard configuration

Note

Disabling the management side

Security Specifications for Tomcat

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.