### 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](# "NginxMailCoreModule") .
使用这条指令你可以设置URL像HTTP服务器那样的验证。协议描述可以看 [这里](# "NginxMailCoreModule")
### 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.
使用这条指令你可以设置验证进程的超时时间
- 主要文档
- Nginx功能概述
- 为什么选择Nginx
- Nginx安装
- 运行和控制Nginx
- 配置符号参考
- 优化 Nginx
- 常见问题(FAQ)
- 调试 nginx
- 核心模块
- Nginx主模块
- Nginx事件模块
- 基本模块
- http核心模块
- HttpIndex模块
- HttpAccess模块
- HttpAuthBasic模块
- HttpAutoindex模块
- Browser模块
- Charset模块
- HttpEmptyGif模块
- HttpFcgi模块
- Geo模块
- HttpGzip模块
- HttpHeaders模块
- HttpIndex模块
- HttpReferer模块
- HttpLimit zone
- HttpLimitReqest模块
- HttpLog模块
- map
- Memcached
- HttpProxy模块
- HttpRewrite模块
- HttpSSI模块
- HttpUserId
- 其他模块
- Addition模块
- EmbeddedPerl
- flv
- HttpGzipStatic
- RandomIndex
- HttpGeoIP
- HttpRealIp
- HttpSSL
- StubStatus模块
- HttpSubstitution
- HttpDav模块
- GooglePerftools
- HttpXSLT
- HttpSecureLink
- HttpImageFilter
- mail模块
- MailCore
- MailAuth
- MailProxy
- MailSSL
- 安装
- nginx在windows上的安装
- nginx在freebsd上的安装
- nginx在ubuntu上的安装
- nginx在fedora上的安装
- nginx php-fpm安装配置
- 配置示例和方法
- 完整例子
- 完整例子2
- 虚拟主机
- 负载均衡
- nginx防盗链
- HWLoadbalancerCheckErrors