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"



, , .

nginx 0.7.62



16 2009 . 21:05 Dmitry Koterov <dmitry@xxxxxxxxxx> :
, , : 304, $http_if_modified_since|$http_if_none_match. !

- - . nginx?
. , nginx .



2009/10/16 Slava Kokorin <slava.kokorin@xxxxxxxxx>

.
Ϛ .

nginx , ģ ( .)

:

fastcgi_cache_path /var/cache/nginx levels= keys_zone=wholepage:50m;

server {
listen 8088;

location = /cached/index.php {
fastcgi_pass 127.0.0.1:9000;
fastcgi_param SCRIPT_FILENAME $root/index.php;
include fastcgi_params;

access_log /var/log/nginx/access_8088_cached.log;

fastcgi_cache wholepage;
fastcgi_cache_valid 200 301 302 304 5m;
fastcgi_cache_key "$request_method|$host|$request_uri";
fastcgi_hide_header "Set-Cookie";
fastcgi_ignore_headers "Cache-Control" "Expires";
}

location ~ \.php$ {
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $root$fastcgi_script_name;
include fastcgi_params;
fastcgi_connect_timeout 75;

if ($arg_action ~ dlattach) {
rewrite /index.php /cached/index.php last;
}

}

}





--
Regards,
Slava


 




Copyright © Lexa Software, 1996-2009.