ðòïåëôù 


  áòèé÷ 


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: nginx É Drupal 6



÷Ù ÃÅÌÉËÏÍ ÉÓÐÏÌØÚÕÅÔÅ ÓÂÏÒËÕ ÏÔ Pressflow ÉÌÉ ËÁËÏÊ-ÔÏ ÉÚ ÍÏÄÕÌÅÊ? íÏÖÅÔÅ ÜÔÏÔ ×ÏÐÒÏÓ ÂÏÌÅÅ ÐÏÄÒÏÂÎÏ ÏÓ×ÅÔÉÔØ?
úÁÒÁÎÅÅ ÂÌÁÇÏÄÁÒÀ.

11 ÎÏÑÂÒÑ 2009 Ç. 14:57 ÐÏÌØÚÏ×ÁÔÅÌØ Vasiliy G Tolstov <v.tolstov@xxxxxxxxx> ÎÁÐÉÓÁÌ:
÷ óÒÄ, 11/11/2009 × 14:11 +0300, Alex, the Marrch Ca'at ÐÉÛÅÔ:
> íÏÖÎÏ ÏÓ×ÅÔÉÔØ ÔÅÍÕ ÐÅÒÅÁÄÒÅÓÁÃÉÉ ÄÌÑ imgcache ÐÏÄÒÏÂÎÅÅ? é ÷ÁÛ ËÏÎÆÉÇ
> ÄÌÑ ËÜÛÉÒÏ×ÁÎÉÑ Õ×ÉÄÅÔØ? ðÒÏÂÌÅÍ Ó ËÕËÁÍÉ ÎÅ ÂÙÌÏ ÉÚ-ÚÁ ËÜÛÉÒÏ×ÁÎÉÑ?
>

ó ËÕËÁÍÉ ÐÒÏÂÌÅÍ ÎÅÂÙÌÏ - ÉÓÐÏÌØÚÕÀ ÍÏÄÕÌØ ÉÚ pressflow. Ó ËÅÛÉÒÏ×ÁÎÉÅÍ
ÐÒÑÍÏ ÓÅÊÞÁÓ ÎÅ ÐÒÉ×ÅÄÕ ÈÏÒÏÛÉÊ ÐÒÉÍÅÒ, ÔÁË ËÁË ËÏÎÆÉÇ ÎÅ ÍÏÇÕ ÎÁÊÔÉ. îÏ
×ÏÏÂÝÅ ÓÔÏÉÔ ÐÏÓÍÏÔÒÅÔØ × ÒÁÓÓÙÌËÅ ÔÕÔ ÐÒÏ ÓÔÁÔØÀ äÍÉÔÒÉÑ ëÏÔÅÒÏ×Á.

server {
šlisten š š š 80;
šserver_name selfip.ru;

šset $domain "selfip.ru";

šroot š /home/vase/www/$domain;

šaccess_log š/home/vase/logs/selfip.ru/access_log main;
šerror_log š /home/vase/logs/selfip.ru/error_log debug;

location ~ /\. {
šdeny šall;
šbreak;
}

error_page 404 /index.php;


index šindex.php;
fastcgi_index šindex.php;

location / {
štry_files š š š$uri š$uri/ @drupal;
}

location ~* ^.+\.(jpg|jpeg|gif|css|png|js|ico)$ {
štry_files š š š$uri š$uri/ @drupal;
šexpires š31d;
šadd_header šLast-Modified: $date_gmt;
}

location /cron.php {
šallow 77.221.141.148/32;
šallow 77.221.143.26/32;
šallow 127.0.0.1/32;
šdeny all;
štry_files š š š$uri š@drupal;
šfastcgi_pass š unix:/var/run/php/$domain;
šinclude š š š š/etc/nginx/templates/fcgi/fastcgi_params;
}

location ~ \.php$ {
štry_files š š š$uri š@drupal;
šfastcgi_pass š unix:/var/run/php/$domain;
šinclude š š š š/etc/nginx/templates/fcgi/fastcgi_params;
}

location @drupal {
šfastcgi_pass š unix:/var/run/php/$domain;
šinclude š š š š/etc/nginx/templates/drupal/fastcgi_params;
}


}

selfip system # cat /etc/nginx/templates/fcgi/fastcgi_params

fastcgi_param šQUERY_STRING š š š $query_string;
fastcgi_param šREQUEST_METHOD š š $request_method;
fastcgi_param šCONTENT_TYPE š š š $content_type;
fastcgi_param šCONTENT_LENGTH š š $content_length;

fastcgi_param šSCRIPT_NAME š š š š$fastcgi_script_name;
fastcgi_param šSCRIPT_FILENAME š š$document_root$fastcgi_script_name;
fastcgi_param šREQUEST_URI š š š š$request_uri;
fastcgi_param šDOCUMENT_URI š š š $document_uri;
fastcgi_param šDOCUMENT_ROOT š š š$document_root;
fastcgi_param šSERVER_PROTOCOL š š$server_protocol;

fastcgi_param šGATEWAY_INTERFACE šCGI/1.1;
fastcgi_param šSERVER_SOFTWARE š šnginx/$nginx_version;

fastcgi_param šREMOTE_ADDR š š š š$remote_addr;
fastcgi_param šREMOTE_PORT š š š š$remote_port;
fastcgi_param šSERVER_ADDR š š š š$server_addr;
fastcgi_param šSERVER_PORT š š š š$server_port;
fastcgi_param šSERVER_NAME š š š š$server_name;

# PHP only, required if PHP was built with --enable-force-cgi-redirect
fastcgi_param šREDIRECT_STATUS š š200;


selfip system # cat /etc/nginx/templates/drupal/fastcgi_params

fastcgi_param šQUERY_STRING š š š q=$uri&$args;
fastcgi_param šREQUEST_METHOD š š $request_method;
fastcgi_param šCONTENT_TYPE š š š $content_type;
fastcgi_param šCONTENT_LENGTH š š $content_length;

fastcgi_param šSCRIPT_NAME š š š š/index.php;
fastcgi_param šSCRIPT_FILENAME š š$document_root/index.php;
fastcgi_param šREQUEST_URI š š š š$request_uri;
fastcgi_param šDOCUMENT_URI š š š $uri;
fastcgi_param šDOCUMENT_ROOT š š š$document_root;
fastcgi_param šSERVER_PROTOCOL š š$server_protocol;

fastcgi_param šGATEWAY_INTERFACE šCGI/1.1;
fastcgi_param šSERVER_SOFTWARE š šnginx/$nginx_version;

fastcgi_param šREMOTE_ADDR š š š š$remote_addr;
fastcgi_param šREMOTE_PORT š š š š$remote_port;
fastcgi_param šSERVER_ADDR š š š š$server_addr;
fastcgi_param šSERVER_PORT š š š š$server_port;
fastcgi_param šSERVER_NAME š š š š$server_name;

# PHP only, required if PHP was built with --enable-force-cgi-redirect
fastcgi_param šREDIRECT_STATUS š š200;




> áÌÅËÓ.
>
> 2009/11/11 Vasiliy G Tolstov <v.tolstov@xxxxxxxxx>:
> > ÷ óÒÄ, 11/11/2009 × 12:55 +0300, Alex, the Marrch Ca'at ÐÉÛÅÔ:
> >> äÏÂÒÏÇÏ ×ÒÅÍÅÎÉ ÓÕÔÏË ×ÓÅÍ.
> >>
> >> éÚ×ÉÎÑÀÓØ, ÞÔÏ ÚÁÄÁÀ ×ÏÐÒÏÓ, ËÏÔÏÒÙÊ ÕÖÅ, ÎÁ×ÅÒÎÑËÁ, ÒÁÚ ÔÙÓÑÞÕ
> >> ÏÂÓÕÖÄÁÌÓÑ. îÏ ËÁË-ÔÏ ÒÁÎØÛÅ Ñ ÎÅ ÐÒÅÄÐÏÌÁÇÁÌ, ÞÔÏ ÏÎ ÄÌÑ ÍÅÎÑ ÂÕÄÅÔ
> >> ÁËÔÕÁÌÅÎ, Á ÔÕÔ ÐÒÉÐÅÒÌÏ.
> >> õ ËÏÇÏ ÅÓÔØ ÏÐÙÔ ÐÏÄÎÑÔÉÑ Drupal 6 ÚÁ nginx-ÏÍ, ÞÅÒÅÚ FCGI Á ÎÅ ÞÅÒÅÚ
> >> Apache - ÏÔÐÉÛÉÔÅ, ÐÏÖÁÌÕÊÓÔÁ, ËÁËÏ× ÒÅÚÕÌØÔÁÔ, ËÁËÁÑ ËÏÎÆÉÇÕÒÁÃÉÑ
> >> ÚÁÒÁÂÏÔÁÌÁ, Ó ËÁËÉÍÉ ÏÇÒÁÎÉÞÅÎÉÑÍÉ, ÐÒÉÛÌÏÓØ ÌÉ ÞÔÏ ÒÕËÁÍÉ ÄÏÔÁÞÉ×ÁÔØ
> >> ÉÔÄ. ðÏÔÏÍÕ ÞÔÏ ÍÎÅ ÚÁ×ÔÒÁ ÎÕÖÎÏ ÂÕÄÅÔ ÜÔÏ ÐÒÏÄÅÌÁÔØ, ÐÏÈÏÖÅ, Á ÐÏÉÓË
> >> ÐÏ éîÅÔÕ ÄÁÌ ÎÅ×ÏÏÂÒÁÚÉÍÏÅ ËÏÌÉÞÅÓÔ×Ï ÐÒÏÔÉ×ÏÒÅÞÉ×ÏÊ ÉÎÆÏÒÍÁÃÉÉ, ÏÔ
> >> "ÎÉÞÅÇÏ ÎÅ ÒÁÂÏÔÁÅÔ" ÄÏ "×ÓÅ ÏÔÌÉÞÎÏ". þÁÝÅ ×ÓÅÇÏ ÇÏ×ÏÒÑÔ, ÞÔÏ
> >> ÐÒÏÂÌÅÍÙ ×ÏÚÎÉËÁÀÔ Ó ImageCache É Boost-ÏÍ - ÓÔÁÌËÉ×ÁÌÓÑ ÌÉ ËÔÏ-ÔÏ Ó
> >> ÜÔÉÍ? ÷ ÏÂÝÅÍ, ÐÏÍÏÇÉÔÅ ÒÁÚÏÂÒÁÔØÓÑ × ÐÒÏÂÌÅÍÅ, ÐÏÖÁÌÕÊÓÔÁ.
> >>
> >> áÌÅËÓ íÁÒÒÔÏ×ÓËÉÊ.
> >
> > C imagecache ÐÒÏÂÌÅÍ ÎÅ ÂÙÌÏ (×ËÌÀÞÁÅÍ clean-url É ÄÅÌÁÅÍ ÞÅÒÅÚ
> > try_files ÐÅÒÅÁÄÒÅÓÁÃÉÀ).
> > Boost ÎÅ ÐÒÏÂÏ×ÁÌ, ÔÁË ËÁË ÉÓÐÏÌØÚÕÀ nginx cache.
> >
> > --
> > Vasiliy G Tolstov <v.tolstov@xxxxxxxxx>
> > Selfip.Ru
> >
> >
> >

--
Vasiliy G Tolstov <v.tolstov@xxxxxxxxx>
Selfip.Ru





 




Copyright © Lexa Software, 1996-2009.