phpMyAdmin 输出: There is mismatch between HTTPS indicated on the server and client.
This can lead to non working phpMyAdmin or a security risk.
Please fix your server configuration to indicate HTTPS properly.
解决:
配置里添加参数:proxy_set_header X-Forwarded-Proto $scheme;
示范:
server {
listen 443;
server_name _;
#其它SSL证书配置
location / {
proxy_pass http://path/to/phpmyadmin;
proxy_set_header X-Forwarded-Proto $scheme;
}
}
当phpMyAdmin显示HTTPS指示不匹配时,可能导致功能异常或安全风险。解决方法是在服务器配置中添加`proxy_set_header X-Forwarded-Proto $scheme;`参数。示例配置为监听443端口的服务器块中,将phpMyAdmin的代理传递设置为正确指示HTTPS。此方案来源于Stack Overflow。
2155

被折叠的 条评论
为什么被折叠?



