ðòïåëôù 


  áòèé÷ 


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



Õ ÎÁÓ ÄÌÑ ÚÅÎÄÁ ×ÏÔ ÔÁËÏÅ × ËÏÎÆÉÇÅ

š š include fastcgi_params;
š š fastcgi_param šSCRIPT_FILENAME š$document_root/index.php;
š š fastcgi_param šSERVER_NAME š š š$host;
š š fastcgi_param šSCRIPT_URI š š š $scheme://$host$uri;
š š fastcgi_param šSCRIPT_URL š š š $uri;


2011/4/12 Igor Sysoev <igor@xxxxxxxxx>
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.
>
> ÷ÁÛ ×ÁÒÉÁÎÔ ÎÅ ÐÏÄÏÊÄ£Ô ÉÚ ÚÁ ×ÏÔ ÔÁËÉÈ
> ×ÏÔ ËÏÎÆÉÇÏ× =(

location / {
š šfastcgi_pass š phpfarm;
š šfastcgi_param šSCRIPT_FILENAME /home/vhost/site/index.php
š šfastcgi_param šPATH_INFO š š š $uri;
š šroot š š š š š /home/vhost/site;
š šinclude š š š š/etc/nginx/fastcgi_params;
š š...
}


--
Igor Sysoev

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

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


 




Copyright © Lexa Software, 1996-2009.