ðòïåëôù 


  áòèé÷ 


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]

nginx + drupal



îÅÄÁ×ÎÏ ×ÏÚÎÉËÌÁ ÎÅÏÂÈÏÄÉÍÏÓÔØ ÐÅÒÅÊÔÉ Ó ÁÐÁÞÁ ÎÁ Ó×ÑÚËÕ nginx+php-fcgi É ÇÏÎÑÔØ ÎÁ ÜÔÏÊ Ó×ÑÚËÅ drupal.
÷ÓÅ ÈÏÒÏÛÏ, ÎÏ ÚÁÍÅÞÅÎ ÏÄÉÎ ÂÁÇ.
åÓÌÉ ×ËÌÀÞÁÅÍ ÞÉÓÔÙÅ ÓÓÙÌËÉ, É ÐÒÉ ÜÔÏÍ × ÎÁÚ×ÁÎÉÉ ÚÁÐÉÓÉ Õ ÎÁÓ ÅÓÔØ "+", ÔÏ ÒÁÂÏÔÁ ÐÏÌÕÞÁÅÔÓÑ ÎÅËÏÒÒÅËÔÎÏÊ.
÷ÏÔ ÐÒÉÍÅÒ.
http://212.176.206.1:85/spot/jhgjghg%2Bjhjhhkj/tracker - ÔÕÔ nginx+php-fcgi
http://212.176.206.1/spot/jhgjghg%2Bjhjhhkj/tracker - ÔÕÔ ÁÐÁÞ.
÷ÏÔ ËÏÎÆÉÇ nginx:


ššššššš server {
ššššššššššššššš listenššššššššš 212.176.206.1:85;

ššššššššššššššš access_logššššš /var/log/nginx/localhost.access_log main;
ššššššššššššššš error_logšššššš /var/log/nginx/localhost.error_log info;

ššššššššššššššš root /home/www/public_html;

location / {
ššš if (!-e $request_filename) {
ššššššš rewriteš ^(.*)$š /index.php?q=$1š last;
ššššššššššš break;
ššššššš }
ššššššš }

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

location @drupal {
ššš fastcgi_passšš 127.0.0.1:1026;
ššš fastcgi_param SCRIPT_FILENAMEšš /home/www/public_html$fastcgi_script_name;
ššš fastcgi_paramš QUERY_STRINGšššš q=$request_uri;
ššš fastcgi_paramš REQUEST_METHODšš $request_method;
ššš fastcgi_paramš CONTENT_TYPEšššš $content_type;
ššš fastcgi_paramš CONTENT_LENGTHšš $content_length;
ššš }
ššš
location ~ \.php$ {
ššš try_filesššššš $uriš @drupal;
ššš fastcgi_passšš 127.0.0.1:1026;
ššš
ššš fastcgi_param SCRIPT_FILENAMEšš /home/www/public_html$fastcgi_script_name;
ššš fastcgi_paramš QUERY_STRINGšššš $query_string;
ššš fastcgi_paramš REQUEST_METHODšš $request_method;
ššš fastcgi_paramš CONTENT_TYPEšššš $content_type;
ššš fastcgi_paramš CONTENT_LENGTHšš $content_length;
ššššššš }
ššš
ššššššš }

}




--
ó Õ×ÁÖÅÎÉÅÍ Ë ÷ÁÍ,
áÎÔÏÎ.


 




Copyright © Lexa Software, 1996-2009.