Topic
  • 4 replies
  • Latest Post - ‏2012-04-02T10:43:54Z by SystemAdmin
NeoWonge
NeoWonge
4 Posts

Pinned topic IHS ErrorDocument

‏2012-03-17T17:56:45Z |
Hi,

We are having problem setting up the ErrorDocument. Seems like IHS is not able to capture the error code and not able to return the proper error page once the context root is configured in the IHS Plugin. Currently we have to remove the mapping in the IHS Plugin to have the errordocument to work. Is there an proper way to do this without modifying the plugin file.

Thanks,
Neo
Updated on 2012-04-02T10:43:54Z at 2012-04-02T10:43:54Z by SystemAdmin
  • SystemAdmin
    SystemAdmin
    3903 Posts

    Re: IHS ErrorDocument

    ‏2012-03-17T19:20:54Z  
    You can't replace a WAS response with an error code using an ErrorDocument in IHS/Apache.

    You can only use them to provide the error response when the WAS plugin itself returns an error code, not when an error response is just being forwarded.

    You'll need to take care of this on the backend. Or open a requirement for IHS to override the error response:

    https://www.ibm.com/developerworks/rfe/
  • NeoWonge
    NeoWonge
    4 Posts

    Re: IHS ErrorDocument

    ‏2012-04-02T08:36:19Z  
    You can't replace a WAS response with an error code using an ErrorDocument in IHS/Apache.

    You can only use them to provide the error response when the WAS plugin itself returns an error code, not when an error response is just being forwarded.

    You'll need to take care of this on the backend. Or open a requirement for IHS to override the error response:

    https://www.ibm.com/developerworks/rfe/
    thanks ... but then how can we setup the ErrorDocument so that when we stop the websphere installed application, we get the proper error page rather than error page 500 from websphere ?
  • NFVY_Sergio_Ibto
    NFVY_Sergio_Ibto
    1 Post

    Re: IHS ErrorDocument

    ‏2012-04-02T09:55:59Z  
    Hi,
    At my company, we have the same problem, how we can redirect to a custom error page when WAS is down if ErrorDocument is not able to capture an 50X or 40X error?

    where we have to configure errordocument property? At IHS, at plugin or other place ?

    Thanks in advanced,
    Sergi Ibar
  • SystemAdmin
    SystemAdmin
    3903 Posts

    Re: IHS ErrorDocument

    ‏2012-04-02T10:43:54Z  
    • NeoWonge
    • ‏2012-04-02T08:36:19Z
    thanks ... but then how can we setup the ErrorDocument so that when we stop the websphere installed application, we get the proper error page rather than error page 500 from websphere ?
    > NeoWonge wrote:
    > thanks ... but then how can we setup the ErrorDocument so that when we stop the websphere installed application, we get the proper error page rather than error page 500 from websphere ?

    Again, you can't.