fastcgi_pass inheritance

Manlio Perillo manlio_perillo at libero.it
Wed Jan 2 19:51:38 MSK 2008


Jean-Philippe ha scritto:
> Manlio Perillo a écrit :
>> Athan Dimoy ha scritto:
> [...]
>> location can not be used inside http block, but you can use the fastcgi
>> directives here.
>>
>>
>> The only problem is with fastcgi_param.
>> I'm not sure, but if you do something like:
>>
>> http {
>>    fastcgi_param x y;
>>    fastcgi_param a b;
>>
>>    server {
>>        location / {
>>            fastcgi_param c d;
>>
>>            fastcgi_pass ...
>>        }
>>    }
>> }
>>
>>
>> then the FASTCGI parameters passed to the FASTCGI server at / will
>> receive only the c:d pair.
>>
>> At least this is what happens with wsgi_var in wsgi module.
> 
> I had the same 'issue' with my proxy configuration. At the http level I
> include a proxy.conf file but if I change any parameter (besides
> proxy_pass) on a location level all the other params are ignored, and I
> muse reinclude the proxy.conf file.
> 

But this should only happen with directives that are stored as arrays, 
such as (unverified) fastcgi_param, fastcgi_pass_header, 
fastcgi_hide_header, fastcgi_catch_stderr, proxy_set_header, 
proxy_pass_header and proxy_hide_header.



Manlio Perillo





More information about the nginx mailing list