FAQ

Page Discussion History

MailAuthModule

Revision as of 11:16, 10 April 2014 by Thresh (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)


WARNING: this article is obsoleted. Please refer to http://nginx.org/en/docs/ for the latest official documentation.

Contents

Synopsis

Example configuration

  auth_http           localhost:9000/cgi-bin/nginxauth.cgi;
  auth_http_timeout   5;
}

Directives

auth_http

syntax: auth_http URL

default: no

context: mail, server

With this directive you can set the URL to the external HTTP-like server for authorization. A description of the protocol can be found here .

auth_http_header

syntax: auth_http_header header value

default: no

context: mail, server

With this directive you can add a HTTP header and value during the identification process. This makes it possible to use a shared secret to ensure that the request was answered by nginx.

For example:

auth_http_header X-NGX-Auth-Key "secret_string";

auth_http_timeout

syntax: auth_http_timeout milliseconds;

default: 60000

context: mail, server

With this directive you can set the time out for authentication process.

References