Wildfly8 changing the server parameters in the response header

Source: Internet
Author: User
Tags jboss jboss server wildfly

The project through the Bureau security checks need to shield out the server middleware information, check the afternoon, the Internet to see are modified JBOSS7, we use the Wildfly8 (JBoss renamed Wildfly), modify the place is not the same, tortured for half a day.

The JBoss server will display its own identity in the HTTP response header by default, as follows:

This exposes the server information, and other people may be based on this information to find a server vulnerability to attack the server.

Shielding method:

Modify the Domain.xml file in Wildfly8, which is located under the/domain/configuration/directory in the Wildfly installation directory. VI Edit Domain.xml file,

  

Modify the value of the header-value, note that there are many header-value in this file, are modified.

The effect after modification:

  

Find. -name "*.xml" | xargs grep "Header-value"//The name can find all files under the current file with an. xml extension and find out what files include Header-value.

Wildfly8 changing the server parameters in the response header

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.