I would like to customize or suppress the Server header
from the modperl server responses such as this:

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?

Thanks for any info

Richard

Reply via email to