No input file specified by FastCGI
meal
nginx-forum at nginx.us
Tue Jun 16 17:39:55 MSD 2009
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/(.*)/(+).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.
Posted at Nginx Forum: http://forum.nginx.org/read.php?2,2950,2950#msg-2950
More information about the nginx
mailing list