Welcome! Log In Create A New Profile

Advanced

Re: fastcgi_param in server context does not work

Maxim Dounin
September 22, 2009 12:04PM
Hello!

On Tue, Sep 22, 2009 at 05:17:53PM +0200, Tomasz Pajor wrote:

> When I set fastcgi_param in server context it is not set, if in
> location it is set.
> Wiki says it should work in http, server, location context.

Please note that wiki also says:

<quote>
Directives not set are inherited from the outer level. Directives
set in current level clear any previously defined directives for
the current level.
</quote>

Note that this is standard behaviour for all array-type directives
(fastcgi_param, proxy_set_header, access_log, error_log and so on).

Maxim Dounin

>
> server {
> listen 80;
> server_name .landingpage.dev;
> access_log off;
> error_log /var/log/nginx/landingpage.log;
>
> root /vhosts/landingpage/public;
> charset utf-8;
>
> fastcgi_index index.php;
> fastcgi_param SITE my_site;
>
> location / {
> try_files $uri $uri/ @fallback;
> fastcgi_pass unix:/var/run/spawn-fcgi.sock;
> fastcgi_param SCRIPT_FILENAME $document_root/$fastcgi_script_name;
> #fastcgi_param SITE my_site;
> include fastcgi_params;
> }
>
> location @fallback {
> fastcgi_pass unix:/var/run/spawn-fcgi.sock;
> fastcgi_param SCRIPT_FILENAME $document_root/index.php;
> #fastcgi_param SITE my_site;
> include fastcgi_params;
> }
> }
>
Subject Author Posted

fastcgi_param in server context does not work

Tomasz Pajor September 22, 2009 11:24AM

Re: fastcgi_param in server context does not work

mike September 22, 2009 11:30AM

Re: fastcgi_param in server context does not work

Maxim Dounin September 22, 2009 12:04PM

Re: fastcgi_param in server context does not work

Tomasz Pajor September 23, 2009 02:02AM

Re: fastcgi_param in server context does not work

mike September 23, 2009 02:36AM

Re: fastcgi_param in server context does not work

Tomasz Pajor September 23, 2009 04:14AM

Re: fastcgi_param in server context does not work

Tomasz Pajor September 23, 2009 05:52AM

Re: fastcgi_param in server context does not work

mike September 23, 2009 06:18AM

Re: fastcgi_param in server context does not work

Maxim Dounin September 23, 2009 07:12AM

Re: fastcgi_param in server context does not work

mike September 23, 2009 12:56PM

Re: fastcgi_param in server context does not work

Maxim Dounin September 23, 2009 01:34PM

Re: fastcgi_param in server context does not work

mike September 23, 2009 01:40PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 201
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready