Shekhar (AmitShekhar)

AmitShekhar Member since 2016 3 posts
Posted: January 13, 2016
Last activity: March 16, 2016
Posted: 13 Jan 2016 14:59 EST
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 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?

System Administration
Moderation Team has archived post, This thread is closed to future replies. Content and links will no longer be updated. If you have the same/similar Question, please write a new Question.