FastCGI problem

Yordan Georgiev y.georgiev at gmail.com
Wed Mar 19 16:26:37 MSK 2008


My full path is dynamic.

http://test.tld1/text.txt -> /www/test.tld1/www/root/text.txt
http://testa.tld1/text.txt -> /www/testa.tld1/www/root/text.txt
But i don't use php. Result is: No input file specified.

On Wed, Mar 19, 2008 at 3:08 PM, bianbian <bianbian.org at gmail.com> wrote:

> use full path?
> fastcgi_param  SCRIPT_FILENAME   /full/path$fastcgi_script_name;
>
> 2008/3/19, Yordan Georgiev <y.georgiev at gmail.com>:
>
> > Hello,
> >
> > My nginx.conf is:
> > user  web;
> > worker_processes  1;
> >
> > #error_log  logs/error.log;
> > #error_log  logs/error.log  notice;
> > #error_log  logs/error.log  info;
> >
> > #pid        logs/nginx.pid;
> >
> >
> > events {
> >     worker_connections  1024;
> > }
> >
> >
> > http {
> >     include       /etc/nginx/mime.types;
> >     default_type  application/octet-stream;
> >
> >     #log_format  main  '$remote_addr - $remote_user [$time_local]
> > $request '
> >     #                  '"$status" $body_bytes_sent "$http_referer" '
> >     #                  '"$http_user_agent" "$http_x_forwarded_for"';
> >
> >     #access_log  logs/access.log  main;
> >
> >     sendfile        on;
> >     #tcp_nopush     on;
> >
> >     #keepalive_timeout  0;
> >     keepalive_timeout  65;
> >
> >     #gzip  on;
> >
> >     server {
> >         listen       80;
> >         server_name  80.80.150.21;
> >         if ($host ~* "([^\/]+)\.([^\.\/]+\.[^\.\/]+)" ) {
> >                set $prefix /$2/$1/root;
> >                rewrite (.*)    $prefix$1;
> >
> >         }
> >
> >         location / {
> >             root   /www;
> >             index  index.php index.html index.htm;
> >         }
> >
> >         error_page   500 502 503 504  /50x.html;
> >         location = /50x.html {
> >             root   html;
> >         }
> >
> >         location ~ \.php$ {
> > #            fastcgi_pass   127.0.0.1:9000;
> >             fastcgi_pass   unix:/tmp/cgi.sock;
> >             fastcgi_index  index.php;
> >             fastcgi_param  SCRIPT_FILENAME
> > $document_root$prefix$fastcgi_script_name;
> >             include        /etc/nginx/fast-cgi;
> >         }
> >
> >     }
> > }
> >
> > This configuration  is wrong. I don't use valid SCRIPT_FILENAME. How to
> > change this options?
> > --
> > Please excuse my bad english...
> >
> > С уважение,
> > Й. Георгиев.
> >
> > WEB: http://gigavolt-bg.net/
> > Blog: http://live.gigavolt-bg.net/
>
>
>
>
> --
> bianbian coding life:
> http://bianbian.org




-- 
Please excuse my bad english...

С уважение,
Й. Георгиев.

WEB: http://gigavolt-bg.net/
Blog: http://live.gigavolt-bg.net/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://nginx.org/pipermail/nginx/attachments/20080319/2aadce11/attachment.html>


More information about the nginx mailing list