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.