操作:
代理模式:nginx > apache/php
换成:haproxy > nginx > apache/php
问题:
在访问https链接的情况,$_SERVER['HTTP_X_FORWARDED_PROTO']获取不到
解决方法:
前端代理直接写死。
参考资料:
https://serverfault.com/questions/515957/how-to-have-nginx-forward-the-http-x-forwarded-proto-header