The ability to change the Server header in a filter depends on the connector. The Coyote connector uses the response.addHeader(..., ...) variant so you get your custom header AND coyote's:

HTTP/1.1 304 Not Modified
Server: IMP/4.1
Date: Tue, 17 May 2005 08:54:10 GMT
Server: Apache-Coyote/1.1

A custom Valve may be able to correct this, the RequestDumperValve log shows both values, because it can execute late enough in the response chain.

In production we have Apache in front of Tomcat connected using mod_jk2 and the client never sees our custom header. I haven't yet looked into whether the final setting of the header occurs on the apache side or on the tomcat side. (I'm assuming it's the Apache side.)

Jon


Jason Bainbridge wrote:
On 5/16/05, Rick Beton <[EMAIL PROTECTED]> wrote:

Andr� Cruz wrote:


Hello!

Is there anyway to remove the tomcat banner that appears in the header
of all pages served by tomcat?

I don't want to disclose that information to my users.



The standard webapps (ROOT, manager, admin etc) include the Tomcat banner. If it's also in your own webapp, then perhaps someone put it there. That's where I'd suggest you need to have a look.


I think by banner the OP was referring to the HTTP Header for Server,
which I don't believe you can change without making changes to the
source or maybe a  filter would be able to change it?

Regards,



--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to