On 09/02/2017 12:34, Simone Bordet wrote:
You cannot extract server information from within a webapp, so your
solution of using a ServletContextListener will not work.

Hmm, didn't know that. Is there a reason why not?

What you need to do is to customize the server configuration.

You can create a subclass of org.eclipse.jetty.util.PathWatcher, and
instantiate that in a Jetty XML file that you reference from a custom
Jetty module.

I know it's a bit vague, I'll try to find some time to whip up a
complete example and document it.
See also https://github.com/eclipse/jetty.project/issues/1319.

That would be very welcome. I imagine I'm not the only one who would want to know how to do this (e.g. anyone using Let's Encrypt certificates would probably be interested)...

Many thanks,
--
John English
_______________________________________________
jetty-users mailing list
[email protected]
To change your delivery options, retrieve your password, or unsubscribe from 
this list, visit
https://dev.eclipse.org/mailman/listinfo/jetty-users

Reply via email to