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