Welcome! Log In Create A New Profile

Advanced

No input file specified by FastCGI

June 16, 2009 09:39AM
Hi,
We have our own framework written in PHP, but it's using .html extension (and change of this is not possible).
So when I put appropriate block in config, part of site is working, but few rewrites is not.

here is my .html parsing block

location ~ \.html$ {
if (!-f $request-filename) { return 404; break; }
root /path/to/files;
fastcgi_pass 127.0.0.1:8000;
fastcgi_index index.html;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_intercept_errors on;
include fastcgi_params;
}


and rewrite rule that isn't working there:

rewrite ^/user/(.*)/moje.([0-9]+).html$ /moje.html?u=$1&showpage=$2 last;
rewrite ^/user/(.*)/(content|lista)/([0-9]+).html$ /moje.html?otheruser=$1&showpage=$3 last;
rewrite ^/user/(.*)/(content|lista).html$ /moje.html?otheruser=$1 last;
rewrite ^/user/(.*)/([a-z]+).html$ /$2.html?u=$1 last;

previously, at Apache, it was working fine (but a little bit slow, so we decide to move to nginx)

Please help me,
Mateusz Kozak.
Subject Author Posted

No input file specified by FastCGI

meal June 16, 2009 09:39AM

Re: No input file specified by FastCGI

Igor Sysoev June 16, 2009 10:00AM

Re: No input file specified by FastCGI

meal June 16, 2009 10:59AM

Re: No input file specified by FastCGI

Igor Sysoev June 16, 2009 11:04AM

Re: No input file specified by FastCGI

edogawaconan June 16, 2009 11:17AM

Re: No input file specified by FastCGI

edogawaconan June 16, 2009 11:21AM

Re: No input file specified by FastCGI

meal June 16, 2009 11:49AM

Re: No input file specified by FastCGI

meal June 16, 2009 12:36PM

Re: No input file specified by FastCGI

Maxim Dounin June 16, 2009 12:12PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 184
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