NGINX for the Developer
[ 186 ]
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"';
}
}
These directives are summarized in the following table:
Table: UserID module directives
Directive Explanation
userid Activates the module according to the
following parameters:
- on: Sets Version 2 cookies and logs
those received - v1: Sets Version 1 cookies and logs
those received - log: Disables setting of cookies, but
enables logging them - off: Disables both the setting of
cookies and the logging of them
userid_domain Configures a domain to be set in the cookie.
userid_expires Sets the age of the cookie. If the keyword
max is used, this translates to 31 Dec 2037
23:55:55 GMT.
userid_name Sets the name of the cookie (default is uid).
userid_p3p Configures the P3P header; for sites which
declare their privacy policy using the
Platform for Privacy Preferences Project's
protocol.
userid_path Defines the path set in the cookie.
userid_service Identity of the service that set the cookie.
For example, the default value for Version
2 cookies is the IP address of the server that
set the cookie.