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.