I have a SPS in the DMZ. This SPS is forwarding all requests to another SPS in the internal network. The second SPS has a agent and displays a fcc for users to be able to authenticate to access a protected resource that's on another application server. So in effect, I have two reverse proxies.
My issue is that when the second agent pops up the login page, the target is the hostname of the second SPS. I need it to assume the hostname of the first proxy. I set enableproxypreservehost=yes on the virtual host of the second proxy. But this doesn't help. When I set enableproxypreservehost=yes on the first SPS, it throws a virtual host not properly configured error.
How would I go about this?