1.apache
减少服务器返回信息:
ServerSignature Off
ServerTokens Prod
修改:include/ap_release.h:
/*
* The below defines the base string of the Server: header. Additional
* tokens can be added via the ap_add_version_component() API call.
*
* The tokens are listed in order of their significance for identifying the
* application.
*
* "Product tokens should be short and to the point -- use of them for
* advertizing or other non-essential information is explicitly forbidden."
*
* Example: "Apache/1.1.0 MrWidget/0.1-alpha"
*/
#define AP_SERVER_BASEVENDOR "Apache Software Foundation"
#define AP_SERVER_BASEPROJECT "Apache HTTP Server"
#define AP_SERVER_BASEPRODUCT "Apache"
#define AP_SERVER_MAJORVERSION_NUMBER 2
#define AP_SERVER_MINORVERSION_NUMBER 2
#define AP_SERVER_PATCHLEVEL_NUMBER 12
#define AP_SERVER_DEVBUILD_BOOLEAN 0
2.nginx:
src/core/nginx.h :
#define nginx_version 8054
#define NGINX_VERSION "0.8.54"
#define NGINX_VER "nginx/" NGINX_VERSION
#define NGINX_VAR "NGINX"
编译安装。
3.php:
php.ini:
; Decides whether PHP may expose the fact that it is installed on the server
; (e.g. by adding its signature to the Web server header). It is no security
; threat in any way, but it makes it possible to determine whether you use PHP
; on your server or not.
expose_php = Off
阅读(1513) | 评论(0) | 转发(0) |