ðòïåëôù 


  áòèé÷ 


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: ÓÐÒÑÔÁÔØ index.php



2011/4/12 kirpich <nginx-forum@xxxxxxxx>:
> ÌÕÞÛÅ ÐÏËÁÖÕ location ËÏÒÎÅ×ÏÊ
>
>
> š š š šlocation š/ {
> š š š š š šif ($request_filename != "index.php") {
> š š š š š š š šrewrite ^(.*)$ /index.php break;
> š š š š š š }
>
> š š š š š šfastcgi_pass šphpfarm;
> š š š š š šfastcgi_index šindex.php;
> š š š š š šfastcgi_param šSCRIPT_FILENAME
> /home/vhost/site$fastcgi_script_name;
> š š š š š šfastcgi_param šDOCUMENT_ROOT š /home/vhost/site;
> š š š š š šinclude š š š š/etc/nginx/fastcgi_params;
> š š š š š šproxy_redirect off;
> š š š š š šclient_body_buffer_size 128k;
> š š š š š šfastcgi_connect_timeout 300;
> š š š š š šfastcgi_send_timeout 300;
> š š š š š šfastcgi_read_timeout 300;
> š š š š š šfastcgi_buffer_size š š 4M;
> š š š š š šfastcgi_buffers š š š š 4 4M;
> š š š š š šfastcgi_busy_buffers_size š8M;
> š š š š š šfastcgi_temp_file_write_size 50M;
> š š š š š šfastcgi_param š COBNUT_PATH š š /home/vhost/Cobnut/;
> š š š š š šfastcgi_param š SITE_PATH š š š /home/vhost/site/;
> š š š š š šfastcgi_param š SITE_CONFIG_MAIN š š š šconfig/conf.ini;
> š š š š š šfastcgi_param š SITE_CONFIG_REWRITE š š config/prod.ini;
> š š š š š šfastcgi_param š SITE_NAME š š š site;
> š š š š š šfastcgi_param š TMP š š /home/vhost/site/tmp/;
> š š š š š šfastcgi_temp_path /home/vhost/site/tmp/;
> š š š š š šfastcgi_param š NGINX_UPLOAD_PROGRESS_URL
> http://site_name/progress;
> š š š š š štrack_uploads proxied 30s;
> š š š }
>
> nginx + php-fpm.
>
> ÷ÁÛ ×ÁÒÉÁÎÔ ÎÅ ÐÏÄÏÊÄ£Ô ÉÚ ÚÁ ×ÏÔ ÔÁËÉÈ
> ×ÏÔ ËÏÎÆÉÇÏ× =(
>

òÅÛÅÎÉÅ ÄÌÑ FastCGI ÚÁ×ÉÓÉÔ ÏÔ ÔÏÇÏ ÉÚ ËÁËÏÊ ÐÅÒÅÍÅÎÎÏÊ ÆÒÅÊÍ×ÏÒË
ÐÁÒÓÉÔ ÕÒÌ. îÅËÏÔÏÒÙÅ ÉÓÐÏÌØÚÕÀÔ PATH_INFO, ÎÏ Õ ×ÁÓ ÅÇÏ ÎÅ ×ÉÄÎÏ.

ðÏÐÒÏÂÕÊÔÅ ÄÏÂÁ×ÉÔØ

fastcgi_param  REQUEST_URI        /index.php$request_uri;

ÐÏÓÌÅ include fastcgi_params;

üÔÏ ×ÄÏÂÁ×ÏË Ë ÓÏ×ÅÔÕ Slava Kokorin.
_______________________________________________
nginx-ru mailing list
nginx-ru@xxxxxxxxx
http://nginx.org/mailman/listinfo/nginx-ru


 




Copyright © Lexa Software, 1996-2009.