<

Your Cookie Settings

Site functionality and performance. These cookies are required for NGINX site functionality and are therefore always enabled. They contain no identifiable information.

Social media and advertising. Cookies that help connect to social networks, and advertising cookies (of third parties) to help better tailor NGINX advertising to your interests

Have a 🍪? :)

nginx.com uses cookies to provide functionality and performance. Privacy Policy.

Web Server Load Balancing with NGINX Plus
  • Free Trial
  • Contact Us
Web Server Load Balancing with NGINX Plus
  • Products
    • NGINX Plus
    • NGINX Controller
    • NGINX Instance Manager
    • NGINX App Protect
    • NGINX Service Mesh
    • NGINX Unit
    • NGINX Amplify
    • F5 DNS Cloud Services
  • Solutions
    • ADC / Load balancing
    • Microservices
    • Cloud
    • Security
    • Web & Mobile Performance
    • API Management
  • Resources
    • Documentation
    • Ebooks
    • Webinars
    • Datasheets
    • Success Stories
    • FAQ
    • Learn
    • Glossary
    • Third Party Integrations
  • Support
    • NGINX Plus Support
    • Training
    • Professional Services
    • Customer Portal Login
  • Pricing
  • Blog
1-800-915-9122

Navigation

  • index
  • next |
  • previous |
  • NGINX Documentation »
  • Welcome to the NGINX and NGINX Plus Documentation »
  • Admin Guide »
  • Dynamic Modules »

NGINX Documentation

  • NGINX Plus
    • Admin Guide
      • Installing NGINX and NGINX Plus
        • Installing NGINX Plus
        • Installing NGINX Open Source
        • Installing NGINX Plus AMIs on Amazon EC2
        • Installing NGINX Plus on the Google Cloud Platform
        • Installing NGINX Plus on Microsoft Azure
        • Deploying NGINX and NGINX Plus on Docker
      • Basic Functionality
        • Controlling NGINX Processes at Runtime
        • Creating NGINX Plus and NGINX Configuration Files
      • Load Balancer
        • HTTP Load Balancing
        • TCP and UDP Load Balancing
        • HTTP Health Checks
        • TCP Health Checks
        • UDP Health Checks
        • gRPC Health Checks
        • Dynamic Configuration of Upstreams with the NGINX Plus API
        • Accepting the PROXY Protocol
      • Content Cache
        • NGINX Content Caching
      • Web Server
        • Configuring NGINX and NGINX Plus as a Web Server
        • Serving Static Content
        • NGINX Reverse Proxy
        • Compression and Decompression
        • Using NGINX and NGINX Plus as an Application Gateway with uWSGI and Django
      • Security Controls
        • NGINX SSL Termination
        • SSL Termination for TCP Upstream Servers
        • Restricting Access with HTTP Basic Authentication
        • Authentication Based on Subrequest Result
        • Setting up JWT Authentication
        • Limiting Access to Proxied HTTP Resources
        • Restricting Access to Proxied TCP Resources
        • Restricting Access by Geographical Location
        • Securing HTTP Traffic to Upstream Servers
        • Securing TCP Traffic to Upstream Servers
        • Dynamic Denylisting of IP Addresses
      • Monitoring
        • Live Activity Monitoring
        • Configuring Logging
        • Debugging NGINX
        • Monitoring NGINX and NGINX Plus with the New Relic Plug-In
      • High Availability
        • High Availability Support for NGINX Plus in On-Premises Deployments
        • Configuring Active-Active High Availability and Additional Passive Nodes with keepalived
        • Synchronizing NGINX Configuration in a Cluster
        • Runtime State Sharing in a Cluster
        • How NGINX Plus Performs Zone Synchronization
      • Dynamic Modules
        • Dynamic Modules
        • Brotli
        • Cookie-Flag
        • Encrypted-Session
        • FIPS Status Check
        • GeoIP
        • GeoIP2
        • Headers-More
        • HTTP Substitutions Filter
        • Image-Filter
        • Lua
        • njs Scripting Language
        • NGINX ModSecurity WAF
        • NGINX Developer Kit
        • OpenTracing
        • Phusion Passenger Open Source
        • Perl
        • Prometheus-njs
        • RTMP
        • Set-Misc
        • SPNEGO
        • XSLT
        • Uninstalling a dynamic module
      • Mail Proxy
        • Configuring NGINX as a Mail Proxy Server
    • Deployment Guides
      • Amazon Web Services
        • Active-Active High Availability with Network Load Balancer
        • Active-Passive High Availability with Elastic IP Addresses
        • Global Server Load Balancing with Amazon Route 53
        • Ingress Controller for Amazon Elastic Kubernetes Services
        • Creating Amazon EC2 Instances
        • Setting Up an NGINX Demo Environment
      • Global Server Load Balancing
        • Amazon Route 53
        • NS1
      • Google Cloud Platform
        • All-Active High Availability
      • Load Balancing Third-Party Servers
        • Apache Tomcat
        • Microsoft Exchange
        • Node.js
        • Oracle E-Business Suite
        • Oracle WebLogic Server
        • Wildfly and JBoss
      • Microsoft Azure
        • Active-Active High Availability with Standard Load Balancer
        • Creating Azure Virtual Machines for NGINX
        • Setting Up an NGINX Demo Environment
      • Migrating Configuration from Hardware ADCs
        • Citrix ADC
        • F5 BIG-IP LTM
      • Enabling Single Sign-On for Proxied Applications
        • Active Directory Federation Services
        • Amazon Cognito
        • Keycloak
        • Okta
        • OneLogin
        • PingFederate and PingOne for Enterprise
    • Releases
    • Technical Specifications
    • Open Source Components
    • FIPS Compliance
    • Directives
  • NGINX Controller
    • Admin Guides
    • Analytics
    • Infrastructure
    • Platform
    • Services
    • Support
    • Releases
    • API Reference
  • NGINX Instance Manager
    • Getting Started
    • Using Instance Manager
    • Tutorials
    • Reference
    • Releases
    • Support
  • NGINX App Protect
    • Administration Guides
      • Administration Guide
      • Using NGINX App Protect with NGINX Controller
    • Configuration Guide
    • Declarative Policy
    • Troubleshooting Guide
    • Releases
  • NGINX Ingress Controller for Kubernetes
    • Overview
    • Installation
      • Building the Ingress Controller Image
      • Installation with Manifests
      • Installation with Helm
      • Installation with the NGINX Ingress Operator
      • Running Multiple Ingress Controllers
    • Configuration
      • Global Configuration
        • ConfigMap Resource
        • Command-line Arguments
        • Custom Templates
        • Reporting Resources Status
        • GlobalConfiguration Resource
      • Ingress Resources
        • Basic Configuration
        • Advanced Configuration with Annotations
        • Advanced Configuration with Snippets
        • Custom Annotations
        • Cross-namespace Configuration
      • VirtualServer and VirtualServerRoute Resources
      • Handling Host and Listener Collisions
      • Policy Resource
      • TransportServer Resource
      • Configuration Examples
    • Logging and Monitoring
      • Logging
      • Status Page
      • Prometheus
    • Troubleshooting
    • Ingress Controller with App Protect
      • Install NGINX Ingress Controller with App Protect
      • Configuration
      • Troubleshoot the Ingress Controller with App Protect Integration
    • Third-Party Modules
      • OpenTracing
    • Releases
    • Technical Specifications
  • NGINX Service Mesh
    • Getting Started
    • Setup
    • Guides
    • Tutorials
    • Reference
    • Support
    • Releases
  • NGINX Unit
    • About
    • Installation
    • Configuration
    • How-To
    • Troubleshooting
    • Contribution
  • NGINX Amplify
  • F5 DNS Cloud Services

Cookie-Flag

Table of Contents

  • Cookie-Flag
    • Installation Instructions
    • More Info

Set the flags HttpOnly, SameSite, and secure for cookies in Set-Cookie upstream response headers.

Installation Instructions

  1. Install the Cookie-Flag module.

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

    $ yum install nginx-plus-module-cookie-flag
    

    For Debian and Ubuntu:

    $ apt-get install nginx-plus-module-cookie-flag
    

    For SLES:

    $ 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 NGINX Plus configuration file, nginx.conf:

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

  4. Reload NGINX Plus to enable the module:

    $ nginx -t && nginx -s reload
    

More Info

  • NGINX Module Reference for Adding Cookie Flag
  • NGINX Dynamic Modules
  • NGINX Plus Technical Specifications
previous ←

Brotli

next →

Encrypted-Session

Navigation

  • index
  • next |
  • previous |
  • NGINX Documentation »
  • Welcome to the NGINX and NGINX Plus Documentation »
  • Admin Guide »
  • Dynamic Modules »

Need help from NGINX directly?

free trial contact us today
  • Products
    • NGINX Plus
    • NGINX Controller
    • NGINX Instance Manager
    • NGINX App Protect
    • NGINX Service Mesh
    • NGINX Unit
    • NGINX Amplify
    • F5 DNS Cloud Services
  • NGINX on Github
    • NGINX Open Source
    • NGINX Unit
    • NGINX Amplify
    • NGINX Kubernetes Ingress Controller
    • NGINX Microservices Reference Architecture
    • NGINX Crossplane
  • Solutions
    • ADC / Load Balancing
    • Microservices
    • Cloud
    • Security
    • Web & Mobile Performance
    • API Management
  • Resources
    • Documentation
    • Ebooks
    • Webinars
    • Datasheets
    • Success Stories
    • Blog
    • FAQ
    • Learn
    • Glossary
  • Support
    • Professional Services
    • Training
    • Customer Portal Login
  • Partners
    • Amazon Web Services
    • Google Cloud Platform
    • IBM
    • Microsoft Azure
    • Red Hat
    • Find a Partner
    • Certified Module Program
  • Company
    • About NGINX
    • Careers
    • Leadership
    • Press
    • Events
Connect With Us
  • facebook
  • twitter
  • linkedin
  • NGINX Youtube Channel
  • rss
Stay in the Loop

Copyright © F5, Inc. All rights reserved. | Privacy Policy