Welcome! Log In Create A New Profile

Advanced

Re: Conditional fastcgi_param

Maxim Dounin
September 18, 2009 06:06AM
Hello!

On Fri, Sep 18, 2009 at 02:41:37PM +0500, Ziyad Saeed wrote:

> fastcgi_param isn't allowed inside an if statement
> The code below doesn't work. Any workaround available
>
> if ($host ~* ^dev\.flow3\.local$) {
> fastcgi_param FLOW3_CONTEXT Development;
> }
> if ($host ~* ^flow3\.local$) {
> fastcgi_param FLOW3_CONTEXT Production;
> }

map $host $context {
dev.flow3.local Development;
flow3.local Production;
}

fastcgi_param FLOW3_CONTEXT $context;

See http://wiki.nginx.org/NginxHttpMapModule for details.

Maxim Dounin
Subject Author Posted

Conditional fastcgi_param

MySchizoBuddy September 18, 2009 05:46AM

Re: Conditional fastcgi_param

Igor Sysoev September 18, 2009 05:52AM

Re: Conditional fastcgi_param

Maxim Dounin September 18, 2009 06:06AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 156
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