I have AS with WebServer in front of it. I need to run Liferay on AS in other context as ROOT (let's say /portal), since it is not the only application running on the AS. At the same moment I need to present the portal to the user on root context using web server.
How to reproduce:
In the Tomcat bundle put Liferay to another context (move app from ROOT to portal) and rename and edit $TOMCAT/conf/Catalina/localhost/ROOT.xml correspondingly. Liferay is now fully available at http://localhost:8080/portal
Set Apache reverse proxy to send requests to the Liferay Portal:
Now the portal is available at http://localhost/portal.
But if I want to make portal accessible at http://localhost/ i would go with something like this:
But this is not working, since Liferay will only prefix generated links with portal.proxy.path, but not remove the context.