This content has been marked as final. Show 2 replies
I need to setup a situation, that is display a custom error page which say "under maintenance" if no back-end WebLogic Server instance reached.In the Apache HTTP Server v2.2 you can use the ErrorDocument directive: http://httpd.apache.org/docs/2.0/mod/core.html#errordocument
For example in httpd.conf,
ErrorDocument 503 /Test.html
Test.html is placed in the DocumentRoot (http://httpd.apache.org/docs/2.0/mod/core.html#documentroot)
I've solved that problem. ErrorDocument may not works with WebLogic Module. Instead, I used ErrorPage directive to specify html page to display.
This is my configuration
File maintain.html is on DocumentRoot directory.
<Location /test> SetHandler weblogic-handler WebLogicHost 192.168.50.57 WebLogicPort 7001 ErrorPage /maintain.html </Location>
Thank for your recommendation.