Question
Last activity: 16 Mar 2016 15:40 EDT
Reverse Proxy + Custom authentication
Hello Team,
I am implementing custom authentication for a customer via reverse proxy server.
I have followed PDN article https://pdn.pega.com/how-configure-reverse-proxy-server to the required setup
System setting for ContextRewriteEnabled has been set to true in prcofig.xml
Initial request seems to go through properly but later request are not working
. User clicks link to https://InternalPortal/prweb/App1/CustomServlet
Based on location the reverse proxy then redirects to correct pega url.
The corresponding proxy config is shown below:
<Location "/prweb/App1/">
RequestHeader set PegaRULES-SetContextURI: https://InternalPortal/prweb/App1
Hello Team,
I am implementing custom authentication for a customer via reverse proxy server.
I have followed PDN article https://pdn.pega.com/how-configure-reverse-proxy-server to the required setup
System setting for ContextRewriteEnabled has been set to true in prcofig.xml
Initial request seems to go through properly but later request are not working
. User clicks link to https://InternalPortal/prweb/App1/CustomServlet
Based on location the reverse proxy then redirects to correct pega url.
The corresponding proxy config is shown below:
<Location "/prweb/App1/">
RequestHeader set PegaRULES-SetContextURI: https://InternalPortal/prweb/App1
ProxyPass https://pega1/prweb/
ProxyPassReverse https://pega1/prweb/
ProxyPassReverseCookieDomain "pega1" "internalportal"
ProxyPassReverseCookiePath "/" "/prweb/App1/"
</Location >
It seems the initial request is reaching pega but somehow updates the URL to just https://internalportal/CustomServlet
Notice that the key word "/prweb/App1" gets removed at pega side.
Due to this the new URL is getting blocked by proxy server as then it becomes an invalid URL
Are we doing something incorrectly here?