Conditional fastcgi_param

Ziyad Saeed myschizobuddy at gmail.com
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: <http://nginx.org/pipermail/nginx/attachments/20090918/9488c2f8/attachment.html>


More information about the nginx mailing list