nginx rewrite

Yanxin Z. lists at ruby-forum.com
Mon May 2 21:54:57 MSD 2011


Hello,
I need to rewrite the URL

/img/14567.jpg to /img/14/14567.jpg

The image name is 14567.jpg, which is saved in /14 folder. /14 is
caluculated by 14567 / 1000

How to implement is NGX rewrite?

Thanks,
Yanxin

-- 
Posted via http://www.ruby-forum.com/.



More information about the nginx mailing list