CDN线上rewrite规则

发布时间:2020-04-01 01:47:35 作者:wjw555
来源:网络 阅读:423

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://cache.yisu.com/upload/information/20200309/28/8407.jpg/base64?0.3907896284177985
https://cache.yisu.com/upload/information/20200309/28/8407.jpg
https://x.ojgoy.cn/MTYwMA16001600/10_16/1101965940gif
https://x.ojgoy.cn/MTYwMA16001600/1016/1101965940gif
https://cache.yisu.com/upload/information/20200309/28/8460.jpg

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
推荐阅读:
  1. nginx location匹配及rewrite规则
  2. K8S traffic ingress rewrite 规则

免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。

cdn线上rewrite规则 %cd te

上一篇:向上/向下取整和四舍五入编程实现

下一篇:大数据四大常识,不会你敢说自己在做大数据?

相关阅读

您好,登录后才能下订单哦!

密码登录
登录注册
其他方式登录
点击 登录注册 即表示同意《亿速云用户服务条款》