1、配置NGINX站点vhost中的SSL规则
2、在 /usr/local/nginx/conf/proxy.conf 最后面加上 proxy_set_header X-Forwarded-Proto $scheme;
3、在对应apache站点vhost中加入SetEnvIf X-Forwarded-Proto https HTTPS=on
即可传递和接收是否使用的https协议
1、配置NGINX站点vhost中的SSL规则
2、在 /usr/local/nginx/conf/proxy.conf 最后面加上 proxy_set_header X-Forwarded-Proto $scheme;
3、在对应apache站点vhost中加入SetEnvIf X-Forwarded-Proto https HTTPS=on
即可传递和接收是否使用的https协议