About the Apache hidden version number setting

Source: Internet
Author: User

Many methods on the web to give at the same time will modify two parameters, after testing and access to data learned, Serversignature and Servertokens parameters, here is inaccurate, superfluous, in fact, only need to modify serversignature to OFF

Modify httpd . conf :

Serversignature OFF

serversignature appear in Apache The resulting image 404 the bottom of a page, directory list, and so on.

Servertokens The explanations can be seen below, when serversignature for O N The setting of this parameter will not take effect until the specific settings of the returned information are displayed.

Servertokens instruction

Syntax: Servertokens Major | Minor | Min[imal] | Prod[uctonly] | OS | full

Default: Servertokens Full

This command is used to control the server's response to the client's " Server: " The answer header contains information about the server operating system type and the module description that was compiled.

Note: When using Servertokens command to be enabled first serversignature instructions.

Servertokens Prod[uctonly] : The server will send (for example): Apache

Apache Server at 192.168.120.240 Port 80

Servertokens Major : The server will send (for example): APACHE/2

APACHE/2 Server at 192.168.120.240 Port 80

Servertokens Minor : The server will send (for example): apache/2.2

apache/2.2 Server at 192.168.120.240 Port 80

Servertokens Min[imal] : The server will send (for example): apache/2.2.11

apache/2.2.11 Server at 192.168.120.240 Port 80

Servertokens OS : The server will send (for example): apache/2.2.11 ( Unix )

apache/2.2.11 (Unix) Server at 192.168.120.240 Port 80

Servertokens Full : The server will send (for example): apache/2.2.11 ( Unix ) php/5.2.8

apache/2.2.11 (Unix) php/5.2.8 Server at 192.168.120.240 Port 80


About the Apache hidden version number setting

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.