Question

3
Replies
1513
Views
AmitShekhar Member since 2016 3 posts
Posted: 4 years ago
Last activity: 4 years 7 months ago
Closed
Solved

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 pegaurl.

The corresponding proxy config is shown below:

<Location "/prweb/App1/">

RequestHeader set PegaRULES-SetContextURI: https://InternalPortal/prweb/App1

ProxyPasshttps://pega1/prweb/

ProxyPassReversehttps://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?

System Administration
Moderation Team has archived post
Share this page LinkedIn