ðòïåëôù 


  áòèé÷ 


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



éÇÏÒØ, Ñ ÜÔÉÍÉ FAQ É ÒÕËÏ×ÏÄÓÔ×Ï×ÁÌÓÑ, ÐÒÅÖÄÅ ÞÅÍ ÓÀÄÁ ÎÁÐÉÓÁÔØ.
åÓÌÉ Ñ ÐÉÛÕ:

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;
ššššššš }
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;
ššš }
ôÏ ÐÏÌÕÞÁÀ ÏÛÉÂËÕ 404.

åÓÌÉ Ñ ÐÉÛÕ:

location / {
ššš if (!-e $request_filename) {
ššššššš rewriteš ^(.*)$š /index.php?q=$1š last;
šššššššššš break;
šššššš }
šššššš }
location = /index.php {
ššš 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.