Cookie-Flag

Note: The module was deprecated in Release 23 and removed in Release 26. The proxy_cookie_flags directive implements native support for setting cookie flags and replaces the module. See Native Method for Setting Cookie Flags for details.

Installation

  1. Install the Cookie-Flag module.

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

    sudo yum update && \
    sudo yum install nginx-plus-module-cookie-flag

    For Debian and Ubuntu:

    sudo apt update && \
    sudo apt install nginx-plus-module-cookie-flag

    For SLES:

    sudo zypper refresh && \
    sudo zypper install nginx-plus-module-cookie-flag

    For Alpine:

    apk add nginx-plus-module-cookie-flag
  2. Put the load_module directive in the top‑level (“main”) context of F5 NGINX Plus configuration file, nginx.conf:

    load_module modules/ngx_http_cookie_flag_filter_module.so;
    
    http {
        # ...
    }
  3. Perform additional configuration as required by the module.

  4. Test the NGINX Plus configuration. In a terminal, type-in the command:

    nginx -t

    Expected output of the command:

    nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
    nginx: configuration file /etc/nginx/nginx.conf is successful
  5. Reload the NGINX Plus configuration to enable the module:

    nginx -s reload

More Info