NGINX Documentation


This dynamic module provides encryption and decryption support for NGINX variables based on AES-256 with MAC. It is usually used with the Set-Misc dynamic module and the NGINX rewrite module.

Installation Instructions

  1. Install the Encrypted-Session module.

    For Amazon Linux, CentOS, Oracle Linux, and RHEL:

    $ yum install nginx-plus-module-encrypted-session

    For Debian and Ubuntu:

    $ apt-get install nginx-plus-module-encrypted-session

    For SLES:

    $ zypper install nginx-plus-module-encrypted-session
  2. Put the following directive in the top-level (“main”) context of the main NGINX Plus configuration file, /etc/nginx/nginx.conf:

    load_module modules/;
    load_module modules/;

    Note: The directives must be in this order.

  3. Perform additional configuration as required by the module.

  4. Reload NGINX Plus to enable the module:

    $ nginx -t && nginx -s reload