WebSphere Application Server & Liberty

WebSphere Application Server & Liberty

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.

 View Only
Expand all | Collapse all

redirect URL for specific application (for backup page, if application is unavailable)

  • 1.  redirect URL for specific application (for backup page, if application is unavailable)

    Posted Thu August 23, 2012 07:46 AM
    We have a WebSphere Application Server V7 ND cell with ~70 web applications.
    HTTP traffic is routed through IHS to WebSphere Application Server nodes.

    If an application becomes unavailable (HTTP 404 or HTTP 500), IHS serves a customized error page. This is configured via httpd.conf (ErrorDocument 404/500).

    For one of our web applications, we need to provide a custom, web application specific error page. If this (and only this) application becomes unavailable, this error page should be served instead of the above mentioned ErrorDocument.

    Is there a way to configure a custom error/application unavailable page on a per-application-basis, either in IHS or Plugin? 


  • 2.  redirect URL for specific application (for backup page, if application is unavailable)

    Posted Tue August 28, 2012 09:45 AM
    Check this page : docs.codehaus.org/display/JETTY/How+to+C...

    error-page options works well on tomcat and also have seen one my customers using for Error 500 to show a custom page and then redirect to homepage.



  • 3.  redirect URL for specific application (for backup page, if application is unavailable)

    Posted Tue August 28, 2012 04:44 PM
    Hi joseph,

      Only one doubt with these customization you can controll error page at application level that is an application error, but what about IHS or pluggin?

      If your application is down you haven't the application, so you haven't your customization no? how is the error page launched?

      I think that i'm not understanding so good these solution, excuse me.

    regards


  • 4.  redirect URL for specific application (for backup page, if application is unavailable)

    Posted Wed August 29, 2012 02:52 PM
    [quote author=91692909 post=523534681]Hi joseph,

      Only one doubt with these customization you can controll error page at application level that is an application error, but what about IHS or pluggin?

      If your application is down you haven't the application, so you haven't your customization no? how is the error page launched?

      I think that i'm not understanding so good these solution, excuse me.

    regards[/quote]

    True... any customization inside the app will work only when the application is available.


  • 5.  redirect URL for specific application (for backup page, if application is unavailable)

    Posted Wed August 29, 2012 02:54 PM
    may be we can try putting the application in a different virtualhost under IHS and then customize the error page.


  • 6.  redirect URL for specific application (for backup page, if application is unavailable)

    Posted Wed August 29, 2012 04:28 PM
    Thank you very much Joseph.

    I don't know that the ErrorDocument can be configure at VirtualHost level...but yes.

    httpd.apache.org/docs/2.2/mod/core.html#...

    Great solution!!!!



  • 7.  redirect URL for specific application (for backup page, if application is unavailable)

    Posted Mon September 03, 2012 08:46 AM
    I'll have a look on that, thank you very much! :-)


  • 8.  redirect URL for specific application (for backup page, if application is unavailable)

    Posted Mon September 03, 2012 11:21 AM
    hi,

    But this error document "ErrorDocument 500 or 400"will be common for all the applications running under that virtual host.

    I have implemented this   in my envt - with 5 virtual host with each  running  5 different applications and each having a different type of "ErrorDocument". But i cannot have individual application wise "ErrorDocuments" inside one virtual host.

    I think joseph is asking error document for one application among 5 applications (for example: 5 applications are configured in that particular virtual host) - Am i right joseph - please correct me if i am wrong.


  • 9.  redirect URL for specific application (for backup page, if application is unavailable)

    Posted Mon September 03, 2012 01:52 PM
    [quote author=144305761 post=523746175]hi,

    But this error document "ErrorDocument 500 or 400"will be common for all the applications running under that virtual host.

    I have implemented this   in my envt - with 5 virtual host with each  running  5 different applications and each having a different type of "ErrorDocument". But i cannot have individual application wise "ErrorDocuments" inside one virtual host.

    I think joseph is asking error document for one application among 5 applications (for example: 5 applications are configured in that particular virtual host) - Am i right joseph - please correct me if i am wrong.[/quote]

    you need to use namebased virtual hosts and keep one app per virtualhost or seperate the virtual host which needs the customization