0

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"?

hwsw
  • 2,596
  • 1
  • 15
  • 19

1 Answers1

0

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.

Achim Nierbeck
  • 5,265
  • 2
  • 14
  • 22
  • Thank you! Ah, you are the guy from the Apache Karaf Cookbook - which i have now on my table. Thanks for that good book as well. – hwsw Apr 29 '16 at 12:37
  • You're welcome and I hope that book does help you get around the specialties :-) – Achim Nierbeck Apr 29 '16 at 12:42