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 127.0.0.1 (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 127.0.0.1 correctly, but generates a default 404 page for 127.0.0.2 rather than invoking B.

--
John English


Back to the top