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]


  • To: nginx-ru@xxxxxxxxx
  • Subject:
  • From: Anton Kiryushkin <swood@xxxxxxxxxxx>
  • Date: Wed, 4 Apr 2012 19:49:18 +0400
  • Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fotofor.biz; s=google; h=mime-version:date:message-id:subject:from:to:content-type; bh=Y9OgTFgyT2wV3BFsbEwOgKP6IonD3+fK08J7TIhcyvE=; b=LV/C2aqk1NmHnAddqjHzPvGd78SdoEqvSv1nSr9rQbNrjqpF78VI1FyUmx9mmcZGxe S5WoU9T6b0mUlQZ/A8NDcULPxpnUQh8DrHUW5Cmc1/iYUR4pNwfV7j7Jd/tXdhIirtrr HsdFb8JD8Tm4jddDTVys3tANJ7FWmuZXXy6lU=

, , .
location:

location ~* some.do {
set $id $arg_id;
set $method $arg_method;
set $type $arg_type;

rewrite ^(.*)type=[0-9]+\&method=[a-zA-Z0-9]+\&id=[0-9]+$ $type$method$id;
root /var/www/nginx/cache/folder;
error_page 404 = @folder_fetch;
expires 1d;
}

location @folder_fetch {
internal;
rewrite $type$method$id$ /some.do?type=$type&method=$method&id=$id break;

proxy_pass http://backend;
proxy_store /var/www/cache/folder/some.do;
proxy_store_access user:rw group:rw all:r;
}

:
/some.do?type=4&method=showpreview&id=21995429

:
"GET /some.do?type=4&method=showpreview&id=21995429 HTTP/1.1" 301

, , /some.do .... ....

--
Best regards,
Anton Kiryushkin,

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


 




Copyright © Lexa Software, 1996-2009.