I have web application running on localhost and listening on port 5050. I would like to have this web application under URL with relative path domain.tld/page/app
I tried to use mod_rewrite:
<Location /page/app> RewriteEngine on RewriteRule .*$ http://127.0.0.1:5050/$1 [P,QSA,NE] </Location> This rewrites domain.tld/page/app to domain.tld/login which is not a valid URL on my server.
Is it possible to reverse the rewrite? I can't use ProxyPassReverse because I need to remove relative path from URL when I proxy the request to the application.
/logincoming from? This would seem to be the result of your web application logic, as it doesn't appear to have anything to do with these directives?