Apache-Talk @lexa.ru 

Inet-Admins @info.east.ru 

Filmscanners @halftone.co.uk 

Security-alerts @yandex-team.ru 

nginx-ru @sysoev.ru 


   


   


   















      :: nginx-ru
Nginx-ru mailing list archive (nginx-ru@sysoev.ru)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: fastcgi + php



 ,   .

    location ~ ^/upper/.+\.php$ {
        fastcgi_pass   127.0.0.1:8888;
        include fastcgi_params;
        fastcgi_param  DOCUMENT_ROOT    /path/to/upper;
        fastcgi_param  SCRIPT_FILENAME  /path/to$fastcgi_script_name;
        fastcgi_param  QUERY_STRING     $query_string;
        fastcgi_param  REQUEST_METHOD   $request_method;
        fastcgi_param  CONTENT_TYPE     $content_type;
        fastcgi_param  CONTENT_LENGTH   $content_length;
    }

     location ~ ^/.+\.php$ {
            fastcgi_pass   127.0.0.1:8888;
            fastcgi_index  index.php;
            include fastcgi_params;
            fastcgi_param  DOCUMENT_ROOT    /path/to/scripts;
            fastcgi_param  SCRIPT_FILENAME  $document_root$fastcgi_script_name;
            fastcgi_param  QUERY_STRING     $query_string;
            fastcgi_param  REQUEST_METHOD   $request_method;
            fastcgi_param  CONTENT_TYPE     $content_type;
            fastcgi_param  CONTENT_LENGTH   $content_length;
    }


3  2010 . 17:44  hg_04 <nginx-forum@xxxxxxxx> :
> -fastcgi_param SCRIPT_FILENAME /path/to/upper$fastcgi_script_name;
> +fastcgi_param SCRIPT_FILENAME /path/to$fastcgi_script_name;
>
> Posted at Nginx Forum: 
> http://forum.nginx.org/read.php?21,94033,94068#msg-94068
>
>
> _______________________________________________
> nginx-ru mailing list
> nginx-ru@xxxxxxxxx
> http://nginx.org/mailman/listinfo/nginx-ru
>



-- 
Best regards,
Anton Kiryushkin,

_______________________________________________
nginx-ru mailing list
nginx-ru@xxxxxxxxx
http://nginx.org/mailman/listinfo/nginx-ru


 




Copyright © Lexa Software, 1996-2009.