Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [jetty-users] Using WebAppContext at contextPath / but also serving images, sounds folders

The answer at Stackoverflow by Joakim is as always very informative, thank you for pointing to it.

I just have one open question left: if I would like to serve 3 different things by Jetty - the 2 static subfolders (/images and /sounds) and one servlet (at /, serving Websockets, GET, POST) - then should I put them all in one XML config files (and what it the name, is it org.eclipse.jetty.server.handler.ContextHandler ?) or should I use 3 different XML files?

Best regards
Alex


On Tue, Aug 10, 2021 at 2:50 PM Alexander Farber <alexander.farber@xxxxxxxxx> wrote:

On Tue, Aug 10, 2021 at 12:42 PM <gouessej@xxxxxxxxx> wrote:

https://stackoverflow.com/a/68682598/458157

Ah the longest match is used? I was assuming the folder order in the config files and maybe thus I was having problems


Back to the top