• MailAuth
  • 指令
  • auth_http
  • auth_http_header
  • auth_http_timeout

    MailAuth

    Example configuration 配置举例:

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

    指令

    auth_http

    syntax:*authhttp**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:*authhttp_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:

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

    auth_http_timeout

    syntax:*authhttp_timeout**milliseconds;_*

    default:*60000*

    context:*mail, server*

    With this directive you can set the time out for authentication process. 使用这条指令你可以设置验证进程的超时时间

    原文: https://wizardforcel.gitbooks.io/nginx-doc/content/Text/5.2_mailauth.html