浏览文章
文章信息
Magento2 https部署SSL部署|ssl部署后后台乱码|Magento2命令方式部署SSL
12411
1、nginx配置
location ~ \.well-known{ root $MAGE_ROOT; allow all; }2、后台配置
【安全https配置】
#配置安全https select * from core_config_data where path = 'web/secure/base_url'; #如果没有: INSERT INTO core_config_data (scope,scope_id,path,value) VALUES ('default',0,'web/secure/base_url','https://www.aiweline.com/')【配置前台https启用】
#前台启用https select * from core_config_data where path = 'web/secure/use_in_frontend'; #如果没有: INSERT INTO core_config_data (scope,scope_id,path,value) VALUES ('default',0,'web/secure/use_in_frontend',1)【配置后台https启用】
#后台启用https select * from core_config_data where path = 'web/secure/use_in_adminhtml'; #如果没有: INSERT INTO core_config_data (scope,scope_id,path,value) VALUES ('default',0,'web/secure/use_in_adminhtml',1)3、配置完成后清除缓存
bin/magento cache:clean
提示:欢迎关注,注册,发布博客!