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 05/08/2015 20:28, Joakim Erdfelt wrote:
Dont set virtualHosts at all, no entries.
Don't use <Set name="virtualHosts"> at all.

That will accept answers from all hosts.

It would appear from my experiments that when there are multiple "setHandler" blocks defining webapps all mapped to "/", the last one wins if the virtual host lists are not disjoint. If I have one accepting (A) and another without a VH list (B), specifying A then B means that B always responds. If I reverse the order (B then A), A accepts correctly, but generates a default 404 page for rather than invoking B.

John English

Back to the top