浏览文章
文章信息
Magento2 多店铺apache设置|multi website apache config
13870
配置:
<VirtualHost *:80> ServerName mysite.mg DocumentRoot /var/www/html/magento2/pub/ </VirtualHost> <VirtualHost *:80> ServerName french.mysite.mg DocumentRoot /var/www/html/magento2/pub/ SetEnv MAGE_RUN_CODE "french" SetEnv MAGE_RUN_TYPE "website" </VirtualHost> <VirtualHost *:80> ServerName german.mysite.mg DocumentRoot /var/www/html/magento2/pub/ SetEnv MAGE_RUN_CODE "german" SetEnv MAGE_RUN_TYPE "website" </VirtualHost>或者:
# --------------多店铺设置--------------------- SetEnvIf Host a.rr.aiweline.com MAGE_RUN_CODE=a SetEnvIf Host a.rr.aiweline.com MAGE_RUN_TYPE=store # --------------多店铺设置---------------------