ПРОЕКТЫ 


  АРХИВ 


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: rewrite не корректно отраба тывает



??, ?????, ????? ????????. ??? ????? ? ????????????http://sysoev.ru/nginx/docs/http/ngx_http_rewrite_module.html??????? ?? ??????????, ?????? ??????.?

? ?????? ??????????????? ????????, ?? ?? ???????? ? ????? ?? ??????????? f:i .?
????????, ? nginx ???? ????? ???? ??????????, ????????? ? ??????????? ?? ???? ??? ??????? ????/cache/3156fbafded50dfde766222b602e2773850a04??? ?????? ????????? ???????? ?????? ??????? /all_photos/3156fbafded50dfde766222b602e2773850a04 , ?? ??? ??????? ????????? ? ????? ??? ?????????? /f:i ?, ???? ??? ????? ?? ?????????? ?????????? rewrite.?

????? ?????????? ??????????? ???? ??????, ??? ??????? ?? ??? ??????:
?location /cache {
? ? ? ? ? ? rewrite ^\/cache\/(.*)$/ \/all_photos\/$1\/f:i;
? ? ? ? ? ? proxy_pass ? ? ? ?http://192.168.0.3:8080;



22 ???????? 2011??. 11:26 ???????????? Alex Vorona <voron@xxxxxxxxxx> ???????:
22.09.2011 09:46, Alex wrote:
> ????? ???????? ? ????, ??? ??? ?? ???????? ?? ???????, ????????? ? URL ??
> ?????????? ????? - ? ????? ??? ??????????:
> http://localhost/cache/3156fbafded50dfde766222b602e2773850a04

?pcretest
PCRE version 8.12 2011-01-15

?re> /^\/cache(\/*)$/
data> /cache/3156fbafded50dfde766222b602e2773850a04
No match
data>
?re> /^\/cache(\/.*)$/
data> /cache/3156fbafded50dfde766222b602e2773850a04
?0: /cache/3156fbafded50dfde766222b602e2773850a04
?1: /3156fbafded50dfde766222b602e2773850a04
data>

???-?? ? ??? ? ?????????? regexp ?? ??. ? nginx ??? pcre.

_______________________________________________
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.