Nginx 中文官方手册mail模块MailAuth
上一篇:MailCore 下一篇:MailProxy

MailAuth

Example configuration
配置举例:

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

指令

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 .
使用这条指令你可以设置URL像HTTP服务器那样的验证。协议描述可以看 这里

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.
使用这条指令你可以添加HTTP头和值到验证进程中。这个使得可以用共享密码来却不请求得到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.
使用这条指令你可以设置验证进程的超时时间

上一篇:MailCore 下一篇:MailProxy