Welcome! Log In Create A New Profile

Advanced

Nginx equivalent of Apache's SetEnv

Posted by ideanet 
Nginx equivalent of Apache's SetEnv
May 29, 2010 06:41PM
Hi,
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} ^(.*)example.com
RewriteRule ^ - [E=MAGE_RUN_CODE:example]

and for Nginx?

thank you for any help...
Luca
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.

http://www.magentocommerce.com/wiki/multi-store_set_up/multiple-website-setup

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: 125
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