Package: nginx
Version: 1.2.1-2.2+wheezy1

Hi,

In squeeze, this order inside a server location block was working:

    include /etc/nginx/fastcgi_params;
    fastcgi_split_path_info ^((?U).+\.cgi)(/?.*)$;
    fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;

However, in wheezy, the new SCRIPT_FILENAME is ignored - the default is
passed in first. Debug log for the request says:

2013/08/03 11:23:30 [debug] 11668#0: *1 fastcgi param: "SCRIPT_FILENAME: 
/var/www/rrd/rrd.cgi/"
[...]
2013/08/03 11:23:30 [debug] 11668#0: *1 fastcgi param: "SCRIPT_FILENAME: 
/var/www/rrd/rrd.cgi"
[...]
2013/08/03 11:23:30 [error] 11668#0: *1 FastCGI sent in stderr: "Cannot chdir 
to script directory (/var/www/rrd/rrd.cgi)" while reading response header from 
upstream, [...]

When I swap the order, or comment out the fastcgi_param SCRIPT_FILENAME in
the /etc/nginx/fastcgi_params file, I get a single log entry for the
variable:

2013/08/03 11:27:33 [debug] 12112#0: *1 fastcgi param: "SCRIPT_FILENAME: 
/var/www/rrd/rrd.cgi"

And everything works fine.

I see no obvious reason why one fastcgi_param wouldn't override the other.
Indeed, http://wiki.nginx.org/HttpFastcgiModule#fastcgi_param says:

        Directives set in current level clear any previously defined
        directives for the current level.

Please fix this. TIA.

-- 
     2. That which causes joy or happiness.


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to