Mastering Nginx

(Ron) #1

Directive Reference


[ 260 ]

Directive Explanation Context/Default
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


Valid contexts: http,
server, location
Default value: off

userid_domain Configures a domain to be set in
the cookie.

Valid contexts: http,
server, location
Default value: none
userid_expires Sets the age of the cookie. If
the keyword max is used, this
translates to 31 Dec 2037
23:55:55 GMT.

Valid contexts: http,
server, location
Default value: -

userid_mark Sets the first character of the tail of
the userid_name cookie's base64
representation.

Valid contexts: http,
server, location
Default value: off
userid_name Sets the name of the cookie. Valid contexts: http,
server, location
Default value: uid
userid_p3p Configures the P3P header. Valid contexts: http,
server, location
Default value: -
userid_path Defines the path set in the cookie. Valid contexts: http,
server, location
Default value: /
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.

Valid contexts: http,
server, location
Default value: IP
address of the server
Free download pdf