Nginx-ru mailing list archive (nginx-ru@sysoev.ru)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Кеширова? ?ие FastCGI запро сов
По аналогии с проксированием не работает :(
server {
listen 80;
server_name catalog.***.su;
gzip off;
proxy_buffering on;
#access_log off;
access_log /var/log/nginx/catalog***.su/access.log;
error_log /var/log/nginx/catalog.***.su/error.log;
client_max_body_size 1024m;
location ~ \.php
{
proxy_cache_key $scheme$proxy_host$uri$is_args$args;
proxy_cache zone2;
proxy_cache_valid 200 302 24h;
proxy_cache_min_uses 10;
fastcgi_pass 127.0.0.1:7000;
fastcgi_index index.php;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME
/usr/local/www/applications/catalog.***.su/public/index.php;
fastcgi_param PATH_INFO $fastcgi_script_name;
}
location ~*
^.+\.(js|css|jpg|jpeg|gif|ico|png|zip|rar|tgz|gz|bz2|mp3|swf)$
{
root /usr/local/www/applications/catalog.2gis.su/public;
expires 7d;
}
location /
{
if (!-e $request_filename){ rewrite (.*) /index.php last; }
}
location ~ /\. {
deny all;
}
location ~ /robots.txt
{
deny all;
}
location ~ /favicon.ico {
deny all;
}
}
Posted at Nginx Forum: http://forum.nginx.org/read.php?21,11465,11469#msg-11469
|