Nginx Module Reference manual: User ID module (user ID)

Source: Internet
Author: User
Keywords Nginx user id Module
Tags apache compiled configuration configure cookie cookies default default value

These modules are all compiled into Nginx by default unless a module is manually specified to be excluded in configure.

Module Ngx_http_userid_module A cookie for the connection, mainly using $uid_got and $uid_set variables, note: $uid _got and $uid_set cannot be obtained in SSI, Because the SSI filtering module works before the UserID module filters.
This module is equivalent to Apache's Mod_uid module.
Sample configuration:

UserID on;userid_name uid;userid_domain example.com;userid_path/;userid_expires 365d;userid_p3p ' policyref= '/w3c/ P3p.xml ", cp=" CUR ADM our NOR STA NID ";

Instructions

UserID

Syntax: userid [on|v1|log| | Off]
Default value: UserID off
Working with fields: HTTP, server, location
Whether to enable the issue of cookies or log to the requested cookie:

On-Enables a version 2 cookie and records it. V1-Enables a version 1 cookie and records it. Log-does not transfer cookies, but writes to log. Off-cookies are disabled.

Userid_domain

Syntax: userid_domain [name | none]
Default value: Userid_domain None
Working with fields: HTTP, server, location
Specifies the domain name of the cookie, and the parameter "none" does not issue a cookie to any domain name.

Userid_expires

Syntax: userid_expires [TIME | max]
Default value: None
Working with fields: HTTP, server, location
Sets the expiration time for cookies.
Parameter setting and emitting the browser's effect time on the cookie, the value "max" specifies the expiration date: December 31, 2037 23:55:55 GMT, which is the maximum time that some old browsers can recognize.

Userid_name

Syntax: userid_name name
Default value: Userid_name UID
Working with fields: HTTP, server, location
Sets the name of the cookie.

userid_p3p

Syntax: USERID_P3P line
Default value: None
Working with fields: HTTP, server, location
Specifies a value for the P3P header passed along with the cookie.

Userid_path

Syntax: Userid_path path
Default value: Userid_path/
Working with fields: HTTP, server, location
Sets the cookie path.

Userid_service

Syntax: Userid_service number
Default value: Userid_service address
Working with fields: HTTP, server, location
Set the server address for the cookie publication, if not set, the cookie for version one sets it to 0, and version two sets it to server IP.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.