How to change Apache Karaf / Jetty / Pax-Web default path from / to your-custom-path/?

785 Views Asked by At

I have a Karaf installation with some .war-files in it. Each of them is available via hostname:port/individual-context-path.

How can i redirect the hostname:port/ call, which gives a 404 actually - to a given context-path?

Which files defines the jetty / karaf "root-path"?

1

There are 1 best solutions below

2
Achim Nierbeck On BEST ANSWER

You can't re-direct or route a certain path to another, but you can register your application to be registered at Web-ContextPath "/". oth all servlets registered with any HttpService/WecContainer or registerd as Servlet Service (OSGi) will be registered with the "/" context path, all extras are aliases on those.