ðòïåëôù 


  áòèé÷ 


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



ššššššš 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 / {
try_filesššššš $uriš $uri/š @drupal;
index index.php;
ššš }

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/index.php;
ššš 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;
ššš }
ššššššš }


 




Copyright © Lexa Software, 1996-2009.