Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [jetty-users] Customizing 404 response for virtual hosts

On 17/08/2015 06:53, Jan Bartel wrote:
John,

Your jetty.xml you posted does not look correctly configured. You should
have a HandlerList containing a ContextHandlerCollection (which contains
your webapp with its virtual host setup) and a DefaultHandler. If you
webapp does not answer the request because the virtual hosts don't
match, the request will fall through the HandlerList to the
DefaultHandler.  Now, the DefaultHandler is not particularly
customizable, however you could easily write your own handler to pump
out the kind of error page you want.

Jan

Ah, OK, thanks. I'll give it another try, then.

--
John English


Back to the top