Questions tagged «multi-website»

4
Magento 2:如何将Nginx配置为通过子文件夹使用多个网站
我们想在Magento 2中创建多个网站。Magento2 官方文档中有关于此主题的文章,但是它们描述的方式不适合我们的情况。 他们建议使用子域来确定不同的网站,例如 website1 .magento-site.com website2 .magento-site.com 我们想使用子文件夹而不是子域。举个例子 magento-site.com/ website1 magento-site.com/ website2 我们如何在Nginx Web服务器上解决此问题? 我的配置 我正在使用Ubuntu 16.04。我已经安装了Nginx,并且没有更改任何Nginx核心配置。我在magento-site.com.conf里面创建了一个文件/etc/nginx/sites-enabled/magento-site.com.conf。 /etc/nginx/sites-enabled/magento-site.com.conf server { listen 8080; server_name magento-site.com; set $MAGE_RUN_CODE website1; set $MAGE_ROOT /var/www/magento-site.com; include /var/www/magento-site.com/nginx.conf; } 编辑1:(2017-10-23) 每个网站都有多家商店。
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.