nginx 多层代理 参数丢失

来源:互联网 发布:mysql execute into 编辑:程序博客网 时间:2024/05/17 09:39

操作:
代理模式: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

阅读全文
0 0
原创粉丝点击