Cookie-Flag
Note: The module was deprecated in Release 23 and removed in Release 26. The
proxy_cookie_flagsdirective implements native support for setting cookie flags and replaces the module. See Native Method for Setting Cookie Flags for details.
Installation
-
Install the Cookie-Flag module.
For Amazon Linux, CentOS, Oracle Linux, and RHEL:
sudo yum update && \ sudo yum install nginx-plus-module-cookie-flagFor Debian and Ubuntu:
sudo apt update && \ sudo apt install nginx-plus-module-cookie-flagFor SLES:
sudo zypper refresh && \ sudo zypper install nginx-plus-module-cookie-flagFor Alpine:
apk add nginx-plus-module-cookie-flag -
Put the
load_moduledirective 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 { # ... } -
Perform additional configuration as required by the module.
-
Test the NGINX Plus configuration. In a terminal, type-in the command:
nginx -tExpected output of the command:
nginx: the configuration file /etc/nginx/nginx.conf syntax is ok nginx: configuration file /etc/nginx/nginx.conf is successful -
Reload the NGINX Plus configuration to enable the module:
nginx -s reload