年度归档: 2021 年

following is a summary of the tasks you must perform. More details are provided in the sections that follow.

Define websites, stores, and store views in the Magento Admin.
Create one virtual host per Magento website or store view.
Pass the values of MAGE_RUN_TYPE and MAGE_RUN_CODE to the web server.

文件名为:magento.conf(下载),将其放在 /usr/local/nginx/conf/ 文件夹下
然后在 /usr/local/nginx/conf/vhost/www.yourname.com.conf 中将include none.conf; 换成include magento.conf;即可。