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)
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With