Hi,

2015-08-12 13:28 GMT+03:00 Fernando Boaglio <boag...@gmail.com>:
>
> Hi Violeta,
>
> > 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
>
> I thought it was a right place to be, since disable server signature
> is a global feature (like using in all Tomcat servers running in
> production).
>
> Something like anywhere inside server.xml a single attribute
> serverSignature="false" could call
> ErrorReportValve.setShowServerInfo(false);
>
> Could you give me some hints to code it so I could submit a patch ?
>

You can place the following declaration under Host element:

<Server ...>
...
<Host name="localhost"  ...>
    <Valve className="org.apache.catalina.valves.ErrorReportValve"
showServerInfo="false" />
</Host>
...
</Server>

Thus all web applications that belong to this Host will not have server
info in the default error pages.

Regards,
Violeta

> 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