Skip to main content

This content has been archived and is no longer being updated. Links may not function; however, this content may be relevant to outdated versions of the product.

Support Article

Request URL is changing to hostname:port instead of hostname

SA-27075

Summary



When using PRGateway configuration screens, user is getting errors when trying to edit existing hosts.


Error Messages



GET https://[Incorrect_host:port]/prgateway/webwb/hostConfig.jsp?hostName=PCTOGESPEGA&display=block net::ERR_CONNECTION_REFUSED
gateway.js:674 Uncaught SecurityError: Blocked a frame with origin "https://[host]" from accessing a frame with origin "null". The frame requesting access has a protocol of "https", the frame being accessed has a protocol of "data". Protocols must match.
resizeHostConfigIframe @ gateway.js:674onload @ VM102 index.jsp:145
SEC7111: HTTPS security is compromised by res://ieframe.dll/dnserrordiagoff.htm
SEC7111: HTTPS security is compromised by res://ieframe.dll/ErrorPageTemplate.css
SEC7111: HTTPS security is compromised by res://ieframe.dll/errorPageStrings.js
SEC7111: HTTPS security is compromised by res://ieframe.dll/httpErrorPagesScripts.js
SEC7111: HTTPS security is compromised by res://ieframe.dll/noConnect.png
SEC7111: HTTPS security is compromised by res://ieframe.dll/bullet.png
SEC7111: HTTPS security is compromised by res://ieframe.dll/bullet.png
SEC7111: HTTPS security is compromised by res://ieframe.dll/bullet.png
SEC7111: HTTPS security is compromised by res://ieframe.dll/down.png
SEC7111: HTTPS security is compromised by res://ieframe.dll/favcenter.png
SEC7111: HTTPS security is compromised by res://ieframe.dll/favcenter.png
SEC7111: HTTPS security is compromised by res://ieframe.dll/background_gradient.jpg
SCRIPT5: Access is denied.

gateway.js, line 674 character 4


Steps to Reproduce

  1. Go to gateway URL from browser.
  2. Try and edit an existing host.


Root Cause



User is currently using mod_proxy to forward requests to PRGateway, using the path: Browser>Apache(mod_proxy)>LoadBalancer>Tomcat(prgateway)

When changeHost.jsp runs for Edit it is returning a redirect:


else if (request.getParameter("Edit") != null) {
                response.sendRedirect("hostConfig.jsp?hostName=" + selectedHost + "&display=block");
    }


The location header contains a URL that the client browser can not access. This was the LoadBalancer URL.


Resolution



Add the following parameter to the mod_proxy configuration:

ProxyPreserveHost On

This forwards the proper host during proxy up the layers allowing for other components to build the proper redirect URL's. 
 

 

Published August 25, 2016 - Updated October 8, 2020

Was this useful?

0% found this useful

Have a question? Get answers now.

Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.

Did you find this content helpful?

Want to help us improve this content?

We'd prefer it if you saw us at our best.

Pega Community has detected you are using a browser which may prevent you from experiencing the site as intended. To improve your experience, please update your browser.

Close Deprecation Notice
Contact us