I am trying to configure Apache to proxy to an internal server based on dynamic hostnames and using other ports. It seems to be a little bit too complicated for me. This is what I have:
<Location /awesomewebapp>
ProxyPass http://[internalservername]:8080/awesomewebapp
ProxyPassReverse http://[internalservername]:8080/awesomewebapp
</Location>
But this is (obviously) not dynamic. I have been working on rewrite rules etc. but I failed to make it work. What I really need is something like:
^/[internalservername]/awesomewebapp
proxy internally to
http://[internalservername]:8080/awesomewebapp
Thanks in advance