Obfuscate The Apache Version Number ??

nimafire

Verified User
Joined
Aug 10, 2008
Messages
249
1. Type: pico /etc/httpd/conf/httpd.conf
2. Change the line that begins ServerSignature to:

ServerSignature Off

3. Add a line underneath that which reads:

ServerTokens ProductOnly

4. Hit CTRL+X, they y, the enter to save the file.
5. Restart Apache with: /etc/rc.d/init.d/httpd restart


its work on cpanel. how about directadmin server? becasue i cant find this line:
ServerSignature
 
what is the difference between httpd.conf and httpd-default.conf ?
 
what this line do exactly?
ServerTokens ProductOnly

becasue on httpd-default.conf file i see this comment:(not finde any option for ProductOnly)

# ServerTokens
# This directive configures what you return as the Server HTTP response
# Header. The default is 'Full' which sends information about the OS-Type
# and compiled in modules.
# Set to one of: Full | OS | Minor | Minimal | Major | Prod
# where Full conveys the most information, and Prod the least.
#
ServerTokens Major
 
At which copy of httpd-default are you looking? What is the full path?

Jeff
 
Back
Top