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

Just change the context path in the context XML files for your webapp from '/ws' to '/'. 



On Tue, 10 Aug 2021, 23:02 Alexander Farber, <alexander.farber@xxxxxxxxx> wrote:
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

_______________________________________________
jetty-users mailing list
jetty-users@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/jetty-users

Back to the top