fastcgi_ignore_headers inside if{} - block

wishmaster artemrts at ukr.net
Sun Mar 8 10:10:04 UTC 2015


Hi.

I need set some fascgi_* inside "if" block. E.g.:

if ($foo = "bar") {
    fastcgi_ignore_headers "Set-Cookie";
}

But the error is occure on configtest stage:

nginx: [emerg] "fastcgi_ignore_headers" directive is not allowed here 

Is there any workaround?

--
Cheers,
Vitaliy



More information about the nginx mailing list