Hello!
2014-04-08 22:31 GMT-07:00 Tim Yang:
> 我现在访问的是一个 apple的推送服务器 ssl://gateway.sandbox.push.apple.com:2195
> 不是 https 访问请求。。
> 用你上面说的方法可以吗?
>
ngx_proxy 模块只作用于 http 和 https 协议。
如果你一定要使用 php 的话,仍然在 Lua 里面使用 ngx.location.capture() 发起子请求。只不过此时,不使用
ngx_proxy 模块,而使用 ngx_fastcgi 模块指向你的 php 服务器:
http://nginx.org/en/docs/http/ngx_http_fastcgi_module.html
当然了,如果你的 php 本身就挂在一个 http 服务器上(例如 Apache httpd),则仍然使用 ngx_proxy 模块从 nginx 指向它。
继续抄送给 openresty 中文邮件列表。
Regards,
-agentzh