On Tue, Apr 12, 2011 at 09:59:08AM -0400, kirpich wrote:
> ÌÕÞÛÅ ÐÏËÁÖÕ 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.
>
> ÷ÁÛ ×ÁÒÉÁÎÔ ÎÅ ÐÏÄÏÊÄ£Ô ÉÚ ÚÁ ×ÏÔ ÔÁËÉÈ
> ×ÏÔ ËÏÎÆÉÇÏ× =(