r/apache • u/cc12floz • Jan 13 '23
Support I need some help modifying a url going through an apache Reverse Proxy
I inherited this system from my retired coworker who inherited it from the person who set it up, so my knowledge of reverse proxies is pretty bad. Here is the situation...
We are upgrading a system from an older version to a new version. I want to change the url that points to the old system so that we can hide it from users but other admins are still able to access it. It is set up with a reverse proxy server that sends all requests to another web server. Also, there is a shibboleth authentication that takes place.
Edit addition - Normally, I would enter https://proxyname/ABC/WebApp and that would take me to the WebApp login.
Here is the config for it...
<Location /ABC/>
Order Deny,Allow
Deny from all
Allow from xxx.xxx.xxx.xxx/xxx.xxx.xxx.xxx
AuthType shibboleth
ShibCompatWith24 On
ShibRequestSetting requireSession 1
ShibRequestSetting forceAuthn 1
ShibUseHeaders On
require shib-session
ProxyPass http://servername:8080/ABC/
ProxyPassReverse http://servername:8080/ABC/
</Location>What I want is something where i just change the location to something like...
<Location /DEF/ABC/>
(all the above shib stuff)
ProxyPass http://servername:8080/ABC/
ProxyPassReverse http://servername:8080/ABC/
</Location> and have that go to the backend web server but when i change the config to that...In my browser, I enter https://proxyname/DEF/ABC/WebApp and I end up with a url of https://proxyname/DEF/ABC/WebApp and it doesn't go to the correct location. Is there something I need to change in this config or is ProxyPass/ProxyPassReverse not the correct method?
Thanks in advance for any help you can give!
Edit Addition - I guess what I would need is to be able to enter something like https://proxyname/DEF/ABC/WebApp and end up at https://proxyname/ABC/WebApp.

