FastCGI PHP No input file specified.

Adrian von Stechow adrian at stechow.org
Tue Feb 22 19:21:25 MSK 2011


Why don't you follow the example at
http://wiki.nginx.org/Zend_Framework#Time_for_nginx where all requests
to *.php are sent to the backend?

On Tue, Feb 22, 2011 at 5:14 PM, alexk <nginx-forum at nginx.us> wrote:
> Hi,
>
> I have Zend Framework project working so all non static requests are
> forwarded to public/index.php. But now I need to allow PHP scripts from
> another folder - /generator/ to work as usual. So I've added another
> location and use "fastcgi_param   SCRIPT_FILENAME
> /var/www/new/public/generator$fastcgi_script_name;"
>
> As a result it returns "No input file specified.". Not sure what's the
> problem is.
>
> Thanks for any help. Here you are config file:
>
> server {
>        listen   80;
>        server_name  ***************;
>
>        gzip on;
>        gzip_types text/html text/css application/x-javascript
> application/javascript text/plain text/xml;
>
>        charset utf-8;
>
>        #access_log  /var/log/nginx/localhost.access.log;
>
>        location / {
>                root   /var/www/new/public;
>                fastcgi_pass   127.0.0.1:9000;
>                fastcgi_index  index.php;
>
>                fastcgi_store           off;
>                fastcgi_store_access    user:rw  group:rw  all:r;
>
>                charset utf-8;
>
>                fastcgi_param  SCRIPT_FILENAME
> /var/www/new/public/index.php;
>                include        fastcgi_params;
>                index          index.php;
>        }
>
>        location /generator/ {
>                fastcgi_pass    127.0.0.1:9000;
>                fastcgi_param   SCRIPT_FILENAME
> /var/www/new/public/generator$fastcgi_script_name;
>                include         fastcgi_params;
>        }
>
>        location ~*
> "(\/userfiles\/)|(\.(xrd|log|pdf|ttf|fon|js|ico|txt|xml|html|dtd|gif|jpg|png|css|rss|zip|tar\.gz))$"
> {
>                root /var/www/new/public;
>                expires max;
>        }
>
> ..
>
> }
>
> Posted at Nginx Forum: http://forum.nginx.org/read.php?2,177494,177494#msg-177494
>
>
> _______________________________________________
> nginx mailing list
> nginx at nginx.org
> http://nginx.org/mailman/listinfo/nginx
>



More information about the nginx mailing list