12 ÁÐÒÅÌÑ 2011šÇ. 17:59 ÐÏÌØÚÏ×ÁÔÅÌØ 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 šSCRIPT_FILENAMEš/home/vhost/site/index.php;
š š š š š š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.
÷ÁÛ ×ÁÒÉÁÎÔ ÎÅ ÐÏÄÏÊÄ£Ô ÉÚ ÚÁ ×ÏÔ ÔÁËÉÈ
×ÏÔ ËÏÎÆÉÇÏ× =(
Posted at Nginx Forum: http://forum.nginx.org/read.php?21,190497,190524#msg-190524