realm
管理员
管理员
  • UID2
  • 注册日期2012-11-28
  • 最后登录2020-07-04
  • 粉丝30
  • 发帖数319
  • 铜币5002775枚
  • 威望1000091点
  • 银元1000017个
  • 贡献1000000点
  • 鸡蛋1000000个
  • 鲜花1000074朵
  • 维币1000096个
  • 社区明星
  • VIP会员
  • 忠实会员
  • 原创写手
  • 荣誉会员
  • 喜欢达人
  • 追星一族
  • 优秀斑竹
  • 社区居民
  • 最爱沙发
阅读:228回复:0

nginx下解决CF Image Host图床 1.6 伪静态

楼主#
更多 发布于:2020-04-12 23:00
rewrite ^/pm-(.*).(jpg|jpeg|png|gif|html)$ /thumbnail.php?pm=$1 last;
rewrite ^/pt-(.*).(jpg|jpeg|png|gif|html)$ /thumbnail.php?pt=$1 last;
rewrite ^/dt-(.*).(jpg|jpeg|png|gif)$ /image.php?dt=$1 last;
rewrite ^/dm-(.*).(jpg|jpeg|png|gif)$ /image.php?dm=$1 last;
rewrite ^/di-(.*).(jpg|jpeg|png|gif|bmp)$ /image.php?di=$1 last;
rewrite ^/dl-(.*).(jpg|jpeg|png|gif|bmp)$ /image.php?dl=$1 last;
rewrite ^/pm/(.*)/(.*).(jpg|jpeg|png|gif|html)$ /thumbnail.php?pm=$1 last;
rewrite ^/pt/(.*)/(.*).(jpg|jpeg|png|gif|html)$ /thumbnail.php?pt=$1 last;
rewrite ^/dt/(.*)/(.*).(jpg|jpeg|png|gif)$ /image.php?dt=$1 last;
rewrite ^/dm/(.*)/(.*).(jpg|jpeg|png|gif)$ /image.php?dm=$1 last;
rewrite ^/di/(.*)/(.*).(jpg|jpeg|png|gif|bmp)$ /image.php?di=$1 last;
rewrite ^/dl/(.*)/(.*).(jpg|jpeg|png|gif|bmp)$ /image.php?dl=$1 last;
rewrite ^/(pm|pt)/(.*)/(.*)$ /thumbnail.php?pm=notfound last;
rewrite ^/(dt|dm|di|dl)/(.*)/(.*)$ /index.php?di=notfound last;
rewrite ^/gallery/$ /gallery.php last;
rewrite ^/gallery/([0-9]+)/$ /gallery.php?p=$1 last;
rewrite ^/gallery/(.*)/([0-9]+)/$ /gallery.php?p=$2&o=$1 last;
rewrite ^/gallery/([A-Za-z])/page([0-9]+).html$ /gallery.php?p=$2&o=$1 last;
rewrite ^/sitemap.xml$ /sitemap.php last;
realm.name/No.2
游客

返回顶部