sad limitation with an if block

mike mike at mike2k.com
Tue Dec 22 04:19:13 MSK 2009


I wanted to do a conditional addition to fastcgi params:

if ($http_host ~* 'secure-') {
    fastcgi_param HTTPS on;
}

However, nginx returns with "fastcgi_param is not allowed here"

Any way to allow fastcgi_params to be included in a dynamic block?




More information about the nginx mailing list