Configuring a Reverse Proxy Server with a REN Server
This section provides an overview of reverse proxy server (RPS) configuration and provides examples.
Production PeopleSoft installations may configure the REN server behind an RPS. The RPS isolates the REN server and other web servers from the open internet, provides SSL session handling, and presents a single-server origin to outside clients. PeopleSoft customers may put REN servers and PeopleSoft Pure Internet Architecture web servers behind one RPS, or just REN servers.
These examples assume that:
You have installed the current PeopleTools release on both host machines.
You have configured a web server using the default parameters on the first host machine.
You have configured a REN server using the default parameters on the first host machine.
This example presents one possible configuration for a REN server running on one host machine and installing an RPS to run on a second host machine, using Oracle WebLogic. The RPS redirects clients to both a REN server and to the PeopleSoft Pure Internet Architecture web server.
To configure an RPS for a REN server on another host machine:
Install a new web server domain on the second machine.
Name the domain rps.
Configure the following values:
AppServer Name: <application_server_machine_name>
JSL Port: 9999
The RPS will not make Jolt connections.
HTTP Port: 8080
HTTPS Port: 8443
Start the new web server.
Navigate to PS_CFG_HOME\webserv\rps\bin, and run
startPIA.cmd
.Access the Admin Console using either the desktop or hosted version of the WebLogic Remote Console.
Under Providers, select Add Admin Server Connection Provider, and supply the required connection information for the rps server.
See the Oracle GitHub documentation, https://oracle.github.io/weblogic-remote-console/administration-server/domain-configuration.
Click the Edit Tree tile, and then select
.Select the Targets tab, and use the arrows to move PIA from Chosen to Available.
Click Save.
Click the Edit Tree tile, and then select
.Select the Targets tab, and use the arrows to move PIA from Available to Chosen.
Click Save.
For better web server performance, in the Edit Tree section, select
.Select the Protocols tab, select the HTTP tab, and set both Duration and HTTPS Duration to 120 secs.
Stop the rps web server.
Navigate to PS_CFG_HOME\webserv\rps\bin and run
stopPIA.cmd
.Configure RPS parameters for the rps server.
Locate the file web.xml at PS_CFG_HOME/webserv/rps/applications/HttpProxyServlet/WEB-INF.
Edit web.xml in a text editor, changing the WebLogic port and WebLogic host from 8080 to 80 (the value 8080 is a default value that is derived during installation of the domain rps). For example:
<init-param> <param-name>WebLogicPort</param-name> <param-value>80</param-value> <description>HTTP listen port of WebLogic PIA/PORTAL server.</description> </init-param>
To specify the associated REN server, (which is on another machine), edit web.xml, changing the REN server host machine, port, and root URL from their default RPS values. For example:
<init-param> <param-name>WebLogicHost</param-name> <param-value>MACHINE_2</param-value> <description>Hostname of REN server.</description> </init-param> <init-param> <param-name>WebLogicPort</param-name> <param-value>7180</param-value> <description>Listen port of REN server.</description> </init-param>
Another example is:
<servlet-mapping> <servlet-name>RENHttpProxyServlet</servlet-name> <url-pattern>/psren/*</url-pattern> </servlet-mapping>
Reboot the RPS web server.
Navigate to PS_CFG_HOME\webserv\rps\bin, and run
startPIA.cmd
.(Optional) Configure and enable SSL on the RPS machine.
Note: When using an Apache RPS, you must configure the kn_response_flush_override and the flush_rps_buffer_size_for_knjs parameters in the psrenconfig.txt file. Set both parameters according to the instructions within that file. Apache needs both parameters present with the same buffer size. The kn_response_flush_override parameter flushes a message, while the flush_rps_buffer_size_for_knjs parameter flushes the stay-alive.
Note: Using WebLogic as a reverse proxy server is not recommended for a production system.
Apache-based proxy servers vary widely in configurations; here we present an example configuration. The configuration files for your environment may be quite different.
To proxy for RenServer, find and edit the httpd.conf configuration file. Make the following modifications to the file:
Move the line LoadModule proxy_module modules/ApacheProxyModule.dll to the bottom of the file.
Comment out the line AddModule mod_proxy.c.
Add the following five lines after LoadModule proxy_module:
<IfModule mod_proxy.c> ProxyRequests Off ProxyPass /psren http://machine:7180/psren ProxyPassReverse /psren http://machine:7180/psren </IfModule>
Reboot your web server and reverse proxy server.