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: fastcgi cache valid location'



include

3 2013 ., 0:11 Namaste <nginx-forum@xxxxxxxx> :
. :

location /aaa/ {
location ~ ^/aaa/([0-9]+)\.html$ {
fastcgi_pass 127.0.0.1:9000;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root/test1.php;
fastcgi_param QUERY_STRING p1=$1;
fastcgi_cache mycache;
fastcgi_cache_key $scheme$host$request_uri$request_method;
fastcgi_cache_valid 200 301 302 5m;
}
location ~ ^/aaa/(.*)-([0-9]+)\.html$ {
fastcgi_pass 127.0.0.1:9000;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root/test1.php;
fastcgi_param QUERY_STRING p1=$1&p2=$2;
fastcgi_cache mycache;
fastcgi_cache_key $scheme$host$request_uri$request_method;
fastcgi_cache_valid 200 301 302 5m;
}
}

aaa . 20
...
. , .
,
? :)
- ? include ?

:
fastcgi_cache mycache;
fastcgi_cache_key $scheme$host$request_uri$request_method;
fastcgi_cache_valid 200 301 302 5m;

,
fastcgi_cache_valid ?

Posted at Nginx Forum: http://forum.nginx.org/read.php?21,236817,236830#msg-236830

_______________________________________________
nginx-ru mailing list
nginx-ru@xxxxxxxxx
http://mailman.nginx.org/mailman/listinfo/nginx-ru



--

_______________________________________________
nginx-ru mailing list
nginx-ru@xxxxxxxxx
http://mailman.nginx.org/mailman/listinfo/nginx-ru


 




Copyright © Lexa Software, 1996-2009.