FastCGI problem

Yordan Georgiev y.georgiev at gmail.com
Wed Mar 19 15:58:12 MSK 2008


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/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://nginx.org/pipermail/nginx/attachments/20080319/4c233512/attachment.html>


More information about the nginx mailing list