Most already given answers are for situations where you want to hide the app-path. We are in the situation that only Requests beginning with "http://www.example.com/ourpath" are relayed to our apache.
Which means our apache rewrites
ProxyPass "/ourpath/MyApp" "ajp://internalcontainer:8009/MyApp"
ProxyPassReverse "/ourpath/MyApp" "ajp://internalcontainer:8009/MyApp"
The app itself is now reachable, but jsf builds urls like
http://www.example.com/MyApp/javax.faces.resource/jquery/jquery.js.xhtml?ln=primefaces&v=6.2
And ommits the "ourpath" part. Any idea how we can affect the context-path information of tomcat?