MailAuthModule

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

= 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 =