FAQ

Page Discussion Edit History

MailAuthModule

Contents

[edit] Synopsis

Example configuration

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

[edit] Directives

[edit] 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 .

[edit] 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";

[edit] 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.

[edit] References