Reputation: 1806
I'm trying deploying my application in WAS 5 & 6, there is an error message "VirtualHost or Web application not found" "The web group default_host / RbsWeb has not been defined" as below image
when the application is down, there any way so that i can change/redirect to another .jsp page for this error, how this can be done, do need to do anything in default host under Server - Environment - Virtual Host
thanks in advance
Upvotes: 0
Views: 1464
Reputation: 783
In WAS 6 and above you can use the following custom property (set on the server's Web Container in the admin console) to return a custom message:
com.ibm.ws.webcontainer.webgroupvhostnotfound
I have found that this property can even contain html code! (this was tested on WAS 8.0.0.5)
Note that for WAS 6.0, 6.1 and 7.0 this feature is available as a fixpack. See PK85685.
Instructions:
com.ibm.ws.webcontainer.webgroupvhostnotfound
in this case) and the value that you want to set it to in the Value field. (as I mentioned, the value can contain html)Upvotes: 1
Reputation: 11344
Standard practice is to front the app server with a web server.
This page (VirtualHost or Web Application not found when you application is stopped) should come back as a 404 error back to the web server.
Use a web server redirect directive to a custom page that you want to display to your customers.
HTH Manglu
Upvotes: 0
Reputation: 33936
Try creating an application that has a WAR with a context-root of "/". That WAR should become the "default" when no other WAR is installed.
Upvotes: 1