FastCGI problem
Igor Clark
igor at pokelondon.com
Wed Mar 19 17:24:48 MSK 2008
Maybe something like:
fastcgi_param SCRIPT_FILENAME /www/$http_host/www/root
$fastcgi_script_name;
?
On 19 Mar 2008, at 13:26, Yordan Georgiev wrote:
> 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/
--
Igor Clark // POKE // 10 Redchurch Street // E2 7DD // +44 (0)20 7749
5355 // www.pokelondon.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://nginx.org/pipermail/nginx/attachments/20080319/59a17bdb/attachment.html>
More information about the nginx
mailing list