How to hide the Apache security version number and other sensitive information

Source: Internet
Author: User

After the installation of Apache is usually the first time to shut down the version of Apache information and other information, some hackers will be exposed by Apache information targeted intrusion, for the security of the server this information must be closed in a timely manner, configured as follows

1. Hide Apache Information

1.1 Enable httpd-default.conf in primary configuration

# vi/usr/local/apache2/conf/httpd. Conf

Find httpd-default.conf, remove the "#" in front of includes, and change to the following

Include conf/extra/httpd-default.conf

1.2 Modification httpd-default.conf

File:/usr/local/apache2/conf/extra/httpd-default.conf

Found it

Servertokens full

Serversignature on

Change into

Servertokens Prod

Serversignature off

2. Test

2.1 Before the change screenshot

Apache Information not hidden

2.2 Hidden after

Hide Apache Information

3. End

Configuration complete, very simple.

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.