For example I have REST Api base path: /rest-api/api/
There are many APIs under it (e.g. /rest-api/api/groups
, /rest-api/api/groups/users
, /rest-api/api/teams
, /rest-api/api/games
, etc.)
Now I want to unmount all the paths except ones starting with /rest-api/api/groups
.
I tried to write JKUnMount /rest-api/api/(?!groups).*
but it does not work.
I also tried with LocationMatch, but it did not work too.
Is there an option that regex for my apache configuration is disabled? Or maybe I do smth wrong?
I managed to do it by adding:
JKUnMount /rest-api/api/* worker
<LocationMatch "/rest-api/api/groups/*">
SetHandler jakarta-servlet
SetEnv JK_WORKER_NAME worker
</LocationMatch>