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?
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?
Hello!
On Mon, Dec 21, 2009 at 05:19:13PM -0800, mike wrote:
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?
Try this instead:
set $secure "";
if (...) {
set $secure "on";
}
fastcgi_param HTTPS $secure;
Maxim D.
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs