然后再用世界上最好的语言PHP,写一个auth_http的配套服务(这个内容下文会提到)。...跑一跑程序,成了,auth_http服务能够正确收到客户端提交的账号密码,可是遇到了两个问题: 1、压根儿没动态验证码出场的机会啊; 2、在SMTP协议的代理中,auth_http只能向nginx返回是否验证通过的结果...也就是说,认证服务需要同时存在于邮件服务器(IMAP/POP3需要用到)和auth_http中,两者必须一致。 ?...我同样将auth_http的代码提交到了交友平台上,因为考虑到产线环境需要高性能的读写,才为auth_http服务引入了redis作为中间结果的缓存服务器。...顺带的,我们还能通过auth_http完成频控,阻断那些天天开着扫描器在网上拿弱密码库到处碰撞的家伙。 ?
index index.html; root /var/www/androidj.com/htdocs; } } } mail { auth_http...user worker_processes error_log events http mail 存在于http上下文中的指令如下: server 存在于mail上下文中的指令如下: server auth_http
worker_connections 65535; } mail { server_name proxy.test.com; #本地监听域名 auth_http
configure: WARNING: libcurl not found: not building auth_http configure: WARNING: libldap not found:
如知道了 Nginx 提供了邮件服务,百度 Google 一下“Nginx 如何配置邮件服务” 就会得到下面的配置: mail { server_name mail.myweb.name; auth_http
authentication script at: # #http://wiki.nginx.org/ImapAuthenticateWithApachePhpScript # # # auth_http
//wiki.nginx.org/ImapAuthenticateWithApachePhpScript # # # 指定Nginx提供邮件服务时, 用于HTTP认证的服务地址 # # auth_http
authentication script at: # # http://wiki.nginx.org/ImapAuthenticateWithApachePhpScript # # # auth_http
See sample authentication script at: # http://wiki.nginx.org/ImapAuthenticateWithApachePhpScript # auth_http
领取专属 10元无门槛券
手把手带您无忧上云