|Re: [jetty-users] Another newbie-9.x-user question|
On 25/01/2017 19:40, Chris Walker wrote:
John, You certainly can define pages to show for a particular error. Documentation on that can be found at: https://www.eclipse.org/jetty/documentation/9.4.1.v20170120/custom-error-pages.html <https://www.eclipse.org/jetty/documentation/9.4.1.v20170120/custom-error-pages.html>
Yes, I already have that in my web.xml. The problem here is slightly different. I'm not getting to my webapp because of the virtual host mismatch. 127.0.0.1 is defined as a valid virtual host, so 127.0.0.1/foo correctly gives my webapp's 404 page. But 127.0.0.2/foo doesn't get to my webapp at all because 127.0.0.2 is not a valid virtual host. What I see in this case is a 404 showing up in the request log, and a blank page showing up in the browser. And I'd like to be able to configure things so the user doesn't see a blank page -- and preferably sees a page that I supply.
-- John English
Back to the top