Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

ServerTokens Directive

by Arguile (Hermit)
on Oct 15, 2002 at 01:07 UTC ( [id://205258]=note: print w/replies, xml ) Need Help??


in reply to Re: Re: Altering "Server" HTTP Header Param
in thread Altering "Server" HTTP Header Param

To actually change the server tokens you need to recompile, but you can turn them off with the ServerTokens directive.

Unfortunately, “[the] setting[s] appl[y] to the entire server, and cannot be enabled or disabled on a virtualhost-by-virtualhost basis.” Which means it must be used in the main server configuration files. Some ISPs can be convinced to turn them off completely on a security basis — other than that you’re out of luck.

Replies are listed 'Best First'.
Re: ServerTokens Directive
by blakem (Monsignor) on Oct 15, 2002 at 01:23 UTC
    That changes what comes after 'Apache' in the Server header, not the 'Apache' string itself.

    -Blake

      For some reason I recall being able to specify ServerTokens Off. That doesn't appears in the docs though (and gives a syntax error) and I doubt that option would have been taken out. It must have been a hacked in feature (work had a set of patches).

      Sorry for the confusion.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://205258]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others lurking in the Monastery: (3)
As of 2025-06-17 13:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.