avatar

sunday

Sunday's Blog

  • 首页
Home 解决cloudflare saas回源不正常问题
文章

解决cloudflare saas回源不正常问题

Posted 2024-11-10 Updated 2024-11- 10
By sunday
1~2 min read

nginx有多个域名服务时,CF回源域名可能会走默认的服务,导致回源的服务不是预期的

比如nginx上有 a.com 和 b.com两个服务,你的CF回源期望是走到b.com 这个服务,但是如果你的自定义主机名 custom.top 不是b.com的子域的话,就会默认走a.com ,此时需要在nginx 在编写个conf文件,使用custom.top 作为配置文件的server_name ,这样才能使cf回源走到预期的服务,如果有其他方法也请告诉我

cloudflare, 疑难杂症
疑难杂症
License:  CC BY 4.0
Share

Further Reading

Nov 10, 2024

解决cloudflare saas回源不正常问题

nginx有多个域名服务时,CF回源域名可能会走默认的服务,导致回源的服务不是预期的 比如nginx上有 a.com 和 b.com两个服务,你的CF回源期望是走到b.com

Jul 23, 2024

cloudflare的worker/pages通过SaaS自定义域名加速国内访问

本方案也适配直接在cloudflare上面DNS解析到IP的服务,需要开启橙色小云朵 1.设置worker/pages的域名 先到worker/pages里设置域名 test.a.com 然后记得设置路由 test.a.com/* (很重要),区域选择相对应的根域名,这个作用是把第三步中的自定义域名

Jun 30, 2024

解决cloudflare(SaaS)自定义主机名时TXT验证报错

1.出现如下错误 The hostname is using Cloudflare and cannot be activated with an TXT or HTTP validation token. To activate the custom hostname, the DNS targe

OLDER

github actions 自动部署 standalone模式的nextjs

NEWER

windows11设置远程无密码登陆

Recently Updated

  • nextjs15使用better-sqlite3的连接报错问题
  • nextjs + clerk + supabase + realtime 实时监听数据库更改
  • 解决nextjs15使用useLocalStorage报错的问题
  • mac上使用nodejs appium控制chrome浏览器
  • 2024年终总结

Trending Tags

nginx acme 强制跳转HTTPS nodejs 代理 mac 神器 vue3 工具 docker

Contents

©2025 sunday. Some rights reserved.

Using the Halo theme Chirpy