setting environment variable

Ziyad Saeed myschizobuddy at gmail.com
Tue Sep 15 16:38:09 MSD 2009


Btw I'm using nginx on windows with php 5.3


On Tue, Sep 15, 2009 at 5:37 PM, Ziyad Saeed <myschizobuddy at gmail.com>wrote:

> Variable directive not found
>
> 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 at 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/
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://nginx.org/pipermail/nginx/attachments/20090915/ba6bb8d7/attachment.html>


More information about the nginx mailing list