menu LittleJake's Blog
color_lens
avatar
Jake Liu
Never Settle
creative commons by-nc-sa
hit
Category
keyboard_arrow_down

© 2024 LittleJake's Blog.

萌ICP备20223020号

Posts tagged with cdn

head-img

背景

受GSPrxy的启发,制作了nginx反向代理静态资源,并制作了相关扩展。

制作历程

  • 使用类似方式,通过二级目录只反代pixiv,发现产生502错误
  • 不能通过自定义host,未理解清楚proxy_pass斜杠含义
  • 部分网站资源需要添加referer。防提示盗链
  • 需要大量使用sub_filter替换URL

成功历程

11月23日

使用二级域名+URL方式反向代理
只对HTTPs进行代理,添加配置

...

head-img

cloudflare

According to the TOS of CloudFlare that CDN only support port 80 (native HTTP) and port 443(native HTTPS).
You must change your port 80 to others if you want to use in China. Besides, there is a block on China Telecom that IPV6 port 80 (or like port 8080) can only be accessed in their network.

Preparation

  • A domain hosted in the CloudFlare.
  • A terminal (Mobile, Router, PC, etc.)
...
Theme