Conditional fastcgi_param

Ziyad Saeed myschizobuddy at
Fri Sep 18 13:41:37 MSD 2009

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;
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the nginx mailing list