Nginx equivalent of Apache's SetEnv
May 29, 2010 06:41PM
I need to install and configure a server Nginx with Magento.
Magento can enable multi store, so I need to define the equivalent SetEnv on Nginx.

This is the configuration with Apache conf
SetEnv MAGE_RUN_CODE "base" # put here your website or store code
SetEnv MAGE_RUN_TYPE "website" # put here 'website' or 'store'

or with .htaccess
RewriteCond %{HTTP_HOST} ^(.*)
RewriteRule ^ - [E=MAGE_RUN_CODE:example]

and for Nginx?

thank you for any help...
Re: Nginx equivalent of Apache's SetEnv
July 10, 2010 01:22AM
I would also like help with this. The Magento documentation on this is totally lacking. Here is a link to the Apache wiki which uses either httpd.include files or .htaccess.

Everything I've tried so far results in the following error:
[emerg]: unknown directive "E=MAGE_RUN_CODE:default"
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 172
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready