NGINX Documentation


Implement numerous additional set_* directives, extending the NGINX core Rewrite module).

Installation Instructions

  1. Install the Set-Misc module.

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

    $ yum install nginx-plus-module-set-misc

    For Debian and Ubuntu:

    $ apt-get install nginx-plus-module-set-misc

    For SLES:

    $ zypper install nginx-plus-module-set-misc
  2. Put both of the following directives 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