且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

在PHP重定向循环使用SSL负载平衡器背后

更新时间:2022-11-03 15:13:43

您只需让Apache的 认为的SSL是通过设置环境变量(在PHP逻辑 $ _ SERVER ['HTTPS']

You could just let Apache think SSL is on by setting the environment variable (in PHP logic $_SERVER['HTTPS'])

SetEnvIf X-Forwarded-Proto https HTTPS=On

这应该让你的遗产code,而不需要改​​变工作。

This should allow your legacy code to work without the need to change.