How to utilize web.xml and custom servlet to create dual URL
I have a customer requesting the ability to (running Pega 7.2.1) create a second application in their existing production environment and have each app use only one node on each application server (i.e. running a loadbalancer, two application server (two nodes on each environment) with their new app pointing to a private URL for their employees only and the other app pointing to their existing public URL for their customers. Can this be done using a custom servlet and editing web.xml? We know we have to make changes to their loadbalancer for network/connectivity side of things but how can we make this work in Pega?
***Updated by moderator: Lochan to add SR details***
You can define two servlets in web.xml - /PRServletInternal and /PRServletExternal and configure loadbalancer to route traffic to one of the two servlets based on the IP table or something that identifies users with internal IPs vs external IPs.