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: FCGI mass hosting



Evgeny Stepanischev wrote:
>         location / {
>            fastcgi_pass   unix:/tmp/php.fcgi;
>            fastcgi_intercept_errors on;
>
>            fastcgi_param  SCRIPT_FILENAME  
> /home/somesites_ru/$host/engine.php;
>            fastcgi_param  DOCUMENT_ROOT    $document_root;
>            fastcgi_param  REDIRECT_URL     $fastcgi_script_name;
>   
      . ..,     
. ,   SCRIPT_FILENAME -  . 
  engine.php    ?

location ... {
...
set $srv_root /host/client/htdocs;
root $srv_root;

fastcgi_param   SCRIPT_FILENAME $srv_root$fastcgi_script_name;
fastcgi_param   PATH_TRANSLATED $srv_root$fastcgi_script_name;
fastcgi_param   DOCUMENT_ROOT   $srv_root;

...
}


-- 
Best regards, Andrey Y. Ostanovsky
St. Petersburg



 




Copyright © Lexa Software, 1996-2009.