更新时间: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.