Howto / Apache
How to change apache header
Author: Katrame
Visits: 3680
Date: 27.09.2007
This define is used by the statement below:
if (ap_server_tokens == SrvTk_PRODUCT_ONLY) {
ap_add_version_component(pconf, AP_SERVER_BASEPRODUCT);
}
else if (ap_server_tokens == SrvTk_MINIMAL) {
ap_add_version_component(pconf, AP_SERVER_BASEVERSION);
}
else if (ap_server_tokens == SrvTk_MINOR) {
ap_add_version_component(pconf, AP_SERVER_BASEPRODUCT "/" AP_SERVER_MINORREVISION);
}
else if (ap_server_tokens == SrvTk_MAJOR) {
ap_add_version_component(pconf, AP_SERVER_BASEPRODUCT "/" AP_SERVER_MAJORVERSION);
}
else {
ap_add_version_component(pconf, AP_SERVER_BASEVERSION " (" PLATFORM ")");
}
Compile it, and after edit the httpd.conf to setup Tokens ans Signature flags:
ServerSig off
ServerTokens Prod
After this you could restart and it's all.
You could also setup:
Header set Server YOURNEWONE
Header set X-Server YOURNEWIDENTIFCATION
As alternative you could use mod_header and also mod_security to fake all header values.
Author: Katrame
Visits: 3680
Date: 27.09.2007
This define is used by the statement below:
if (ap_server_tokens == SrvTk_PRODUCT_ONLY) {
ap_add_version_component(pconf, AP_SERVER_BASEPRODUCT);
}
else if (ap_server_tokens == SrvTk_MINIMAL) {
ap_add_version_component(pconf, AP_SERVER_BASEVERSION);
}
else if (ap_server_tokens == SrvTk_MINOR) {
ap_add_version_component(pconf, AP_SERVER_BASEPRODUCT "/" AP_SERVER_MINORREVISION);
}
else if (ap_server_tokens == SrvTk_MAJOR) {
ap_add_version_component(pconf, AP_SERVER_BASEPRODUCT "/" AP_SERVER_MAJORVERSION);
}
else {
ap_add_version_component(pconf, AP_SERVER_BASEVERSION " (" PLATFORM ")");
}
Compile it, and after edit the httpd.conf to setup Tokens ans Signature flags:
ServerSig off
ServerTokens Prod
After this you could restart and it's all.
You could also setup:
Header set Server YOURNEWONE
Header set X-Server YOURNEWIDENTIFCATION
As alternative you could use mod_header and also mod_security to fake all header values.
<<
Page 2 of 2
Se vuoi discutere con noi su questo articolo o comunque vuoi porci delle domande usa il nostro Forum

