Welcome! Log In Create A New Profile

Advanced

Re: setting environment variable

September 15, 2009 08:56AM
On Tue, Sep 15, 2009 at 05:37:04PM +0500, Ziyad Saeed wrote:

> Variable directive not found

"Variable $domain:" is a text. The configuration is

----------
http {

map $http_host $domain {
default Production;
dev.flow3.local Development;
}
----------

> Let me clarify
>
> If http://flow3.local/*
> then FLOW3_CONTEXT = Production
>
> If http://dev.flow3.local/*
> then FLOW3_CONTEXT = Development
>
>
> 2009/9/15 Igor Sysoev <is@rambler-co.ru>
>
> > On Tue, Sep 15, 2009 at 02:54:44PM +0500, Ziyad Saeed wrote:
> >
> > > How do I set an environment variable based on the domainFor ex if the
> > domain
> > > is http://dev.flow3.local then FLOW3_CONTEXT = Development. Otherwise
> > its
> > > Production
> > >
> > > Nginx 0.8.15
> >
> > Variable $domain:
> >
> > http {
> >
> > map $http_host $domain {
> > default Production;
> > dev.flow3.local Development;
> > }
> >
> >
> > --
> > Igor Sysoev
> > http://sysoev.ru/en/
> >
> >

--
Igor Sysoev
http://sysoev.ru/en/
Subject Author Posted

setting environment variable

MySchizoBuddy September 15, 2009 08:46AM

Re: setting environment variable

Igor Sysoev September 15, 2009 08:46AM

Re: setting environment variable

MySchizoBuddy September 15, 2009 08:46AM

Re: setting environment variable

MySchizoBuddy September 15, 2009 08:46AM

Re: setting environment variable

Igor Sysoev September 15, 2009 08:56AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 291
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready