Customizing the WebLogic Error Page for the Entire Area

WebLogic has a way to customize standard error pages like HTTP 404 inside web applications using web.xml

<web-app xmlns="http://java.sun.com/xml/ns/j2ee">
    <error-page>
        <error-code>404</error-code>
        <location>errors/404.htm</location>
    </error-page>
</web-app>

Is there a way to set up a common default error page for all applications that WebLogic runs without editing web.xml? Is it possible to capture 404 in Apache and serve a common error page?

+3
source share
2 answers

I don’t know how to set up a 404-page domain zone (I doubt there is a way, as this is intended separately for each application).

However, you can catch it from the web tier. For Apache, you can use the directive ErrorDocument. For instance,ErrorDocument 404 /404.html

0
source

All Articles