users@glassfish.java.net

Re: Changing default error pages

From: Jan Luehe <Jan.Luehe_at_Sun.COM>
Date: Wed, 14 Apr 2010 12:53:27 -0700

glassfish_at_javadesktop.org wrote:
> I have set up a Glassfish 3 system but want to use alternate error messages to conceal the server name and version number. To start, I created a default error page named 404.htm (which was placed in .../domain1/docroot) and then created an entry in domain.xml as follows;
>
> <property name="send-error_1" value="path=404.htm code=404"/>
>
> After bouncing the instance and trying to generate a 404 error, I still get the default error message.
>
> 1. Is there a correct location in the domain.xml where the above line should be placed?
> 2. Is the XML syntax above correct? (I have tried with /404.htm and that does not work)
> 3. Is the 404.htm file in the correct location?
> 4. Is there any detailed docs where this is covered (I've googled so much but got nowhere)?
>
> Any help whould be appreciated
>

send-error_<n> is a virtual-server property and its exact format
documented under

  
http://docs.sun.com/app/docs/doc/820-7694/abhff?l=en&a=view&q=send-error_+glassfish


Jan

> Many thanks
>
> Or is there another
> [Message sent by forum member 'dougreed765']
>
> http://forums.java.net/jive/thread.jspa?messageID=396911
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>
>