求会中文的大佬帮助:设置CNAME指向另一个域名,规则设置默认http转为https,然后使用Origin Rules规则更改访问端口,不是超时就是重定向过多。

What is the name of the domain?

lee666.top

What is the error number?

522

What is the error message?

timed out

What is the issue you’re encountering

规则无效

What steps have you taken to resolve the issue?

删除或者禁用其他规则,删除规则重新设定,改变规则部分选项。

What are the steps to reproduce the issue?

DNS记录设置cnname指向我的另一个域名,然后设置规则:从 HTTP 重定向到 HTTPS ,选用默认通配符模式,请求"http://*",目标“https://${1}”,模式301,勾选“保留查询字符串”,放置第一顺序,;然后添加“Origin Rules”规则,“自定义筛选表达式”>主机名>"开头为/通配符/包含“>https://x.lee666.top,最后目标端口改写至456,保存,但访问时就要么重定向过多,要么超时。但我单独访问另一个域名就可以访问。

What is the name of the domain?

lee666.top

What is the error number?

522

What is the error message?

timed out

What is the issue you’re encountering

同样的规则无效

What steps have you taken to resolve the issue?

删除后重新设定,禁用其他辅助规则。

What are the steps to reproduce the issue?

DNS记录cname"X"指向B域名例如"b.123.com",然后使用默认模板http重定向至https放置第一位,然后添加Origin Rules规则,设置通配符模式,字段尝试使用“主机名/URI/URI完整”,运算符尝试“通配符/等于/包含/开头为”,值为"https://X.lee666.top"。最后目标端口改写为“456”。保存后访问x.lee666.top就显示重定向过多,禁用http改写后就是超时。但我直接访问“B域名”加上对应端口就可以正常访问。
cloudflare的帮助文档实在看的头疼看不明白,而且同样的设置,去年在上一个域名中就是有效的,而且上一个域名到期前我复制到现在这个域名中就无效了。
希望有会中文的大佬帮帮我。
上面的X和B域名b.123.com已经修改,不是我实际的数值。

A 522 error typically happens when Cloudflare requests to the origin (your webserver) get blocked. Review the suggestions in this Community Tip for troubleshooting ideas.

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.