Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: Re: Altering "Server" HTTP Header Param

by gryphon (Abbot)
on Oct 14, 2002 at 21:06 UTC ( #205222=note: print w/replies, xml ) Need Help??


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

Greetings blakem,

Yeah, I noticed that. Unfortunately, I can't recompile Apache since this all lives in an account on an ISP. I'm hoping that I can either find a Perl solution to force the "Server" header change, or use an ".htaccess" file to do something for me.

I'm getting discouraged, though. I think I'm screwed.

gryphon
code('Perl') || die;

  • Comment on Re: Re: Altering "Server" HTTP Header Param

Replies are listed 'Best First'.
•Re: Re: Re: Altering "Server" HTTP Header Param
by merlyn (Sage) on Oct 14, 2002 at 22:40 UTC
ServerTokens Directive
by Arguile (Hermit) on Oct 15, 2002 at 01:07 UTC

    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.

      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.

Re: Re: Re: Altering "Server" HTTP Header Param
by perrin (Chancellor) on Oct 14, 2002 at 21:35 UTC
    I'm afraid you are screwed if you can't recompile Apache. There is no other way to do it.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (3)
As of 2020-04-10 07:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    The most amusing oxymoron is:
















    Results (49 votes). Check out past polls.

    Notices?