码迷,mamicode.com
首页 > 其他好文 > 详细

CDN线上rewrite规则

时间:2019-12-10 00:33:13      阅读:121      评论:0      收藏:0      [点我收藏+]

标签:base   strong   $1   rewrite   str   upload   $2   链接   tps   

2019-12-09云端CDN rewrite规则:

^/.{6}[0-9]{8}/([0-9]{2})_([0-9]{2})/([0-9]+)(png|jpeg|jpg|gif)(.*)$ /uploads/picture/2016/$1/$2/$3.$4$5
^/.{6}[0-9]{8}/([0-9]{2})_([0-9]{2})/(.*)$ /uploads/picture/2016/$1/$2/$3
^/[a-zA-Z0-9]+/([0-9][0-9])([0-9][0-9])/([0-9]+)(png|jpeg|jpg|gif)(.*)$ /uploads/picture/2016/$1/$2/$3.$4$5
^/.{6}[0-9]+/([0-9]{2})([0-9]{2})/(.*)$ /uploads/picture/2016/$1/$2/$3
^/.{6}[0-9]{4}/(.*)$ /uploads/picture/2016/$1
^/.{6}[0-9]{4}[0-9]{8}/(.*)$ /uploads/picture/$1
^/[0-9]+\.([0-9]+)\.([0-9]+)\.([0-9]+)\.(.*)$ /uploads/picture/$1/$2/$3/$4
^/[0-9]+/([0-9][0-9])([0-9][0-9])/(.*)$ /uploads/picture/2016/$1/$2/$3

访问的url链接:

https://x.ojgoy.cn/MTYwMA16001600/10_16/1101965940.gif/base64?0.3907896284177985
https://x.ojgoy.cn/MTYwMA16001600/10_16/1101965940.gif
https://x.ojgoy.cn/MTYwMA16001600/10_16/1101965940gif
https://x.ojgoy.cn/MTYwMA16001600/1016/1101965940gif
https://x.ojgoy.cn/MTYwMA16001600/1016/1101965940.gif

2019-12-09融合云rewrite规则:

^/[a-zA-Z0-9]+/([0-9][0-9])([0-9][0-9])/([0-9]+)(png|jpeg|jpg|gif)(.*)$ /uploads/picture/2016/$1/$2/$3.$4$5
^/.{6}[0-9]+/([0-9]{2})([0-9]{2})/(.*)$ /uploads/picture/2016/$1/$2/$3
^/.{6}[0-9]{4}/(.*)$ /uploads/picture/2016/$1
^/.{6}[0-9]{4}[0-9]{8}/(.*)$ /uploads/picture/$1
^/[0-9]+\.([0-9]+)\.([0-9]+)\.([0-9]+)\.(.*)$ /uploads/picture/$1/$2/$3/$4
^/[0-9]+/([0-9][0-9])([0-9][0-9])/(.*)$ /uploads/picture/2016/$1/$2/$3

CDN线上rewrite规则

标签:base   strong   $1   rewrite   str   upload   $2   链接   tps   

原文地址:https://blog.51cto.com/wujianwei/2457149

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!