Welcome! Log In Create A New Profile

Advanced

How to conditionally set enviroment variable

Lasse Pommerenke
November 22, 2010 09:38AM
Moin!

To make use of Magento's multistore feature I need to tell it which
store to load. This is done wih an environemnt variable.

Is there a way to make something like this work in "server" context:

if ($host ~* \.(at|ch|de)v?$) {
env MAGE_RUN_CODE=storeview_$1;
}

ATM it seems I cannot use 'env' in "server" context, and in a hight
context I cannot use 'if'.

_______________________________________________
nginx mailing list
nginx@nginx.org
http://nginx.org/mailman/listinfo/nginx
Subject Author Posted

How to conditionally set enviroment variable

Lasse Pommerenke November 22, 2010 09:38AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 62
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready