Score:0

I need some help modifying a url going through an apache Reverse Proxy

br flag

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.

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>

Normally, I would enter https://proxyname/ABC/WebApp and that would take me to the WebApp login. What I want is to change the location config in the proxy so that https://proxyname/DEF/WebApp will still send the request to the backend web server as https://servername/ABC/WebApp and appear to the user as https://proxyname/DEF/WebApp

I tried this but i'm getting redirected to the wrong url and the backed webserver doesn't know what to do...

<Location /DEF/ABC/>
(all the above shib stuff)

ProxyPass http://servername:8080/ABC/
ProxyPassReverse http://servername:8080/ABC/
</Location> 

I also tried...

<Location /DEF/>
(all the above shib stuff)
ProxyPass http://servername:8080/ABC/
ProxyPassReverse http://servername:8080/ABC/
</Location>

But that doesn't send the correct url to the backend webserver.

Thanks in advance for any help you can offer!

I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.