aws-magento1.9通过ELB使用https

1、打开magento数据库,进入“core_config_data”表,修改跳转https

2、进入magento后台,进入System->Configuration->Web->Secure->修改Use Secure URLs in Frontend和Use Secure URLs in Admin为yes。这样就可以让前后台都是https模式。

3、出现重定向循环次数过多,添加下面到.htaccess


# Detect the Load-Balancer-Header and set the header magento expects
SetEnvIf X-Forwarded-Proto https HTTPS=on

猜你喜欢

转载自blog.csdn.net/gejian1208/article/details/79865332