Hi,

2015-08-12 6:33 GMT+03:00 Fernando Boaglio <boag...@gmail.com>:
>
> Hi,
>
> I would like to code a server flag to Tomcat using the same idea of
> Apache HTTP ServerSignature (
> http://ask.xmodulo.com/turn-off-server-signature-apache-web-server.html
> ).
>
> So I started digging into the source and I found ErrorReportValve
> class, which already have a showServerInfo attribute and appears to be
> always true.

ErrorReportValve.showServerInfo does exactly what you need -
enables/disables server info depending on the value.
Why do you need additional attribute on a server level?

Regards,
Violeta

> Should I code some new server.xml attribute like:
>
> <Server port="8005" shutdown="SHUTDOWN" serverSignature="false">
>
> ?
>
> If so, which is the appropriate way to read this server.xml value ?
>
> Thanks.
>
> --
>
> Fernando Boaglio
>
> │◦└̅┘◦ ◦ ﴾̭▒̭̊▒̭̊﴿ ﴾̭▓̭̊▓̭̊﴿ ﴾̭░̭̊░̭̊﴿ ◦ ◦ (͡ < ◦ ● ◦└̅┘◦│
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: dev-h...@tomcat.apache.org
>

Reply via email to