I am running my application in WebSphere Liberty Profile. The URL to my application is as below:
http://myhostname:1234/Foo
I am able to customize the error page inside my war's web.xml when the user request any unknown page for e.g.
http://myhostname:1234/Foo/whatever_page
But I am not able to customize the 404 error before the user entering my Foo context root, for e.g.
http://myhostname:1234/whatever_here
I've seen some tutorial recommends to do this in Http Web Server, but unfortunately this is not an option for me. Also, I'm not able to use the root context (myhostname:1234/) for my application due to some reason.
Please advice how could I achieve this with only application server.