> -----Original Message-----
> From: Richard Chen [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, May 01, 2001 2:51 PM
> To: [EMAIL PROTECTED]
> Subject: modify Server header via a handler
> 
> 
> I would like to customize or suppress the Server header
> from the modperl server responses such as this:

see the ServerTokens directive for toning down the response header.

> 
> Server: Apache/1.3.19 (Unix) mod_perl/1.25 mod_ssl/2.8.1 OpenSSL/0.9.6
> 
> I thought I could simply set up a Fixup handler to do this:
> 
> package NoServerInfo;
> use Apache::Constants qw(:common);
> sub handler {
>         my $r=shift;
>         $r->header_out(Server => 'Foo Bar');
>         return OK;
> }
> 1;
> 
> But this does not seem to work. Is there some kind of restriction
> about this particular header in modperl? Without modifying 
> the source code, is there a way to customize this Server header field?

nope... 

there is an archive of a similar discussion if you look back a year or so.

changing the Apache source code for this isn't too hard.  Whether you want
to do this (and ignore your proper Apache/mod_perl roots) is another matter
;)

--Geoff

 

Reply via email to