Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

nginx multistore magento

Tags:

nginx

magento

I'm looking for a way to setup Nginx in a Multi Store environment on Magento. I have setup the server + Nginx, added domains and that all works great.

Unfortunately, the adjustments that normally are made in .htaccess don't work. I'm not sure where to add this (index.php?). So my question is: how to setup multistore using multiurl?

(Yes: i've tried the Magento manual, but it says nothing about multistore)

like image 587
John Avatar asked Feb 21 '23 03:02

John


1 Answers

If you mean setting the store code per store, you can use the HTTPMapModule.

http://wiki.nginx.org/HttpMapModule.

E.g. for domain per store:

map $http_host $storecode {
    domain.com store1code;
}
...

fastcgi_param MAGE_RUN_CODE $storecode;

*Waves at Ben Marks.

like image 175
tuxmytty Avatar answered Feb 22 '23 16:02

tuxmytty