Tech Tip : CA Single Sign-On : SPS forwading redirecting to local host

Document created by Osarobo_Idehen Employee on Apr 16, 2018
Version 1Show Document
  • View in full screen mode

Issue:


SPS forwading redirecting to local host:

[09/29/2017][02:50:48][5640][5900][2192c32c-b87f00b1-2105d0e1-8d608099-516e0da7-4b][addRequestHeaders][Need to preseve Proxy HOST Header.Sending Proxy Host to the backend web server] [09/29/2017][02:50:48][5640][5900][2192c32c-b87f00b1-2105d0e1-8d608099-516e0da7-4b][execute][Sending request to backend = localhost:80 url = http://localhost:80/index.html]
[09/29/2017][02:50:48][5640][5900][2192c32c-b87f00b1-2105d0e1-8d608099-516e0da7-4b][requestConnection(): ][Get connection: HttpRoute[{}->http://localhost:80], timeout = 180000] 5900][2192c32c-b87f00b1-2105d0e1-8d608099-516e0da7-4b][execute][Response status code from backend webserver is 500]


[09/29/2017][02:50:48][5640][5900][2192c32c-b87f00b1-2105d0e1-8d608099-516e0da7-4b][SmProxyRules.processRules][Dispatching to service FORWARD with url http://abc.xyz.com:52000$2]

being resolved to Local host:

[09/29/2017][02:50:48][5640][5900][2192c32c-b87f00b1-2105d0e1-8d608099-516e0da7-4b][execute][Sending request to backend = localhost:80 url = http://localhost:80/index.html]

 


Environment:


Policy server : 12.6 SP1 64 bit
proxy server : 12.6 SP1 64 bit
OS : Windows 2012 R12

 

 

Cause:


The Forward Syntax in the proxy rule was not set correctly

 

 

Resolution:

 

Changing the value for the forward syntax from $2 to $0 in the proxy rule configuration resolved the issue.

Further information:

$0
Appends the entire URI string from the user request to the destination specified in the proxy rule.
For example, if a proxy rule forwards all user requests for www.company.com to proxy.company.com$0, and a user requests for www.company.com/employees/hr/index.html, that request is forwarded to proxy.company.com/employees/hr/index.html.

https://docops.ca.com/ca-single-sign-on/12-6-01/en/configuring/ca-access-gateway-configuration/configure-proxy-rules-manually

 

 

KD : KB000076250

Attachments

    Outcomes