Apache further reinforces Server Security Settings

Source: Internet
Author: User

Apache is the largest web server software in the world. It is well known for its installation and stability. By default, it has some loose restrictions and can be further configured to reinforce its security.

1. Hide version information:

ServerSignature off # No footer information output ServerTokens prod # No apache version information output

2. Run with a low-Permission User:

User nobody

Group nobody

3. website directory settings:

<Directory "/var/www/html"> # Options Indexes FollowSymLinks # cancel Directory browsing, link to other directories AllowOverride None # disable htaccess php_admin_value open_basedir/var/www/html/# Restrict the Active Directory to prevent cross-site access. multiple directories are separated by Order allow and deny.

Allow from all </Directory>

4. Hide the php version, edit the php configuration file php. ini, and add or modify the file:

1

Expose_php Off

 

Related Article

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.