Installing on NGINX
Install a PingAccess agent on an NGINX system.
|
This procedure assumes your NGINX installation lives at |
Before you begin
-
Download an NGINX agent
.zipfile from the PingAccess Downloads page and extract the contents to the$PINGACCESS_AGENT_NGINXdirectory.Amazon Linux 2 systems use RHEL 7 download bundles. Ping Identity will remove support for the last two RHEL 7 download bundles (NGINX Plus R31 and NGINX OSS 1.25.3) when support is added for NGINX Plus R36 and NGINX OSS 1.29.3.
-
The agent RPM has required dependencies that might be available through standard repositories. If these dependencies aren’t available in your Linux version, you can install them using the following included packages.
Included packages for RHEL 8:
-
libsodium-1.0.18-2.el8.x86_64.rpm -
libunwind-1.3.1-3.el8.x86_64.rpm -
openpgm-5.2.122-21.el8.x86_64.rpm -
zeromq-4.3.4-3.el8.x86_64.rpm
Included packages for RHEL 9:
-
libsodium-1.0.18-8.el9.x86_64.rpm -
libunwind-1.6.2-1.el9.x86_64.rpm -
openpgm-5.2.122-28.el9.x86_64.rpm -
zeromq-4.3.4-2.el9.x86_64.rpm
-
Steps
-
To install the NGINX module, run the
yum install pingaccess-agent-nginx-*.rpm lib*.rpmcommand. -
Prepare the
<agent_name>_agent.propertiesfile:-
In the PingAccess admin console, go to Applications > Agents and open your configured agent. In the Shared Secrets section, click the Download icon to download the
<agent_name>_agent.propertiesfile. -
Copy the
<agent_name>_agent.propertiesfile to$NGINX/paa/agent.properties. -
If you’re installing on NGINX OSS, edit the
<agent_name>_agent.propertiesfile, setting theagent.engine.configuration.maxConnectionsproperty to a value of0.
-
-
Make the following modifications to the NGINX configuration file,
$NGINX/nginx.conf:-
To load the PingAccess Agent for NGINX module, add the following directive:
load_module modules/ngx_http_paa_module.so;
-
To configure the PingAccess Agent for NGINX module, add the following directive in the http {} block:
include $NGINX/paa/http.conf;
In the PingAccess Adding agents procedure, the PingAccess Host must match the certificate CN or Subject Alternative Name (SAN).
-
-
Make the following modifications to the
$NGINX/paa/http.conffile:-
To enable the PingAccess agent, modify the following property:
paa_enabled on;
If you’ve set the
agent.engine.configuration.failover.hostsproperty in theagent.propertiesfile, you must update thepaa_upstreamand upstream blocks in the providedhttp.conffile to a value consistent with a CN or SAN of the certificate associated with the PingAccess Agent HTTPS Listener. Otherwise, you won’t be able to establish an HTTPS connection to either the primary or backup server. -
If you’re installing on NGINX OSS, comment out the line containing the queue directive.
For example:
# queue 65536;
-
-
Restart the NGINX server:
-
To stop the NGINX server, run the
sudo systemctl stop nginxcommand. -
To start the NGINX server, run the
sudo systemctl start nginxcommand.
-