On Nov 15, 2006, at 12:15 PM, Riccardo Cohen wrote: > Hi > When all application servers are down, the front load balancing > server answers 503 to the > web client. > I tried to add an error page 503 but it did not work. The standard > 503 error message still > displays. > Here is the webapp conf : > <host id="salesforce.articque.com"> > <web-app id='/' > document-directory='/DevelJsp/webapps/lib_salesforce' > work-dir='/home/app_working/salesforce/work' > temp-dir='/home/app_working/salesforce/tmp'> > <servlet> > <servlet-name>balance_sf</servlet-name> > <servlet-class>com.caucho.servlets.LoadBalanceServlet</ > servlet-class> > <init cluster='art_sf'/> > </servlet> > <servlet-mapping url-pattern='*' servlet-name='balance_sf'/> > <error-page> > <error-code>503</error-code> > <location>/err.html</location> > </error-page> > </web-app> > </host> > > > Is there any way to put a custom page for that ?
Sorry for the delay on this. It's an interesting issue. Error pages are handled by servlets. That's how you can use an / error.jsp to give a slightly nicer response instead of just returning a static page. However, your load balancing configuration is dispatching everything to the backend, including the error page itself. So, you would need to add a new <servlet-mapping> which would take precedence over the dispatching default. Something like the following would work: <servlet-mapping url-pattern="/err.html" servlet-name="resin-file"/> -- Scott > Thanks > > -- > Très cordialement, > > Riccardo Cohen > ligne directe : 02-47-49-63-24 > ------------------------------------------- > Articque > http://www.articque.com > Moulin des Roches > 37230 Fondettes - France > tel : 02-47-49-90-49 > fax : 02-47-49-91-49 > > _______________________________________________ > resin-interest mailing list > [email protected] > http://maillist.caucho.com/mailman/listinfo/resin-interest _______________________________________________ resin-interest mailing list [email protected] http://maillist.caucho.com/mailman/listinfo/resin-interest
