yisou 发表于 2023-10-27 14:34:02

如何增加各自独立的map

eyewearking.com

map $http_host $MAGE_RUN_CODE {
   default '';
   www.eyewearking.com eyewearking;
   eyewearking.com eyewearking;
   www.glassesbay.com glassesbay;
   glassesbay.com glassesbay;
}
-------------------------------
opticaluk.com
map $http_host $MAGE_RUN_CODE {
   default '';
   www.opticaluk.com opticaluk;
   opticaluk.com opticaluk;
   www.glassespark.com glassespark;
   glassespark.com glassespark;
}

-------------------
opticalusa.com
map $http_host $MAGE_RUN_CODE {
   default '';
   www.opticalusa.com opticaluk;
   opticalusak.com opticaluk;
   www.glassesworld.com glassesworld;
   glassesworld.com glassesworld;
}

军哥,我增加了3个虚拟主机, 请问如何在这3个虚拟主机的conf配置中增加独立的map块?

谢谢军哥。


licess 发表于 2023-10-30 08:39:07

要在server段外面添加
页: [1]
查看完整版本: 如何增加各自独立的map