rewrite rule to 2 subdirectory from filename?

Valentin V. Bartenev ne at vbart.ru
Thu Jul 19 00:47:13 UTC 2012


On Thursday 19 July 2012 03:06:51 Elena Zwetkow wrote:
[...]
> location / {
>   rewrite "^/([a-z0-9] {2})([a-z0-9] {2})([a-z0-9]+)$" /media/$1/$2/$1$2$3
> }

rewrite  "^/([0-9a-f]{2})([0-9a-f]{2})" /media/$1/$2$uri;

> Is there a way i can debug such rewrite rules?
> 

pcretest

 wbr, Valentin V. Bartenev



More information about the nginx mailing list