#SRVE0255E | Set a Custom 404 error message in WebSphere


If the AppServer is down or stopped for the maintenance, We can set a custom error page in WebServer using redirect.

A webserver cannot override  the messages if it is written by the appserver. So it is not possible to set any custom page if application is down in the backend.

But we can do this..

We can add a custom property which says the server is under maintenance.
For example:
Go to your appserver console -> click on servers -> server types -> application servers -> server1 -> webcontainer settings ->webcontainer -> custom properties -> click on new and add custom property.
Give
 Name : com.ibm.ws.webcontainer.webgroupvhostnotfound 
value : Server is under Maintenance, we regret any inconvenience caused
save this and restart server instance [server1]
That's it.. If your application is down, the error message, which you configured in custom property, will display to the user.

Comments

Popular posts from this blog

Permissions are too open // #AWS keypair issue - Windows

5 tips for Python Beginners

#Kubernetes Cluster Initialization iptables error #K8s