Fix www redirect and document Cloudflare redirect loop
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -1,4 +1,8 @@
|
||||
nomadro.com, www.nomadro.com {
|
||||
www.nomadro.com {
|
||||
redir https://nomadro.com{uri} permanent
|
||||
}
|
||||
|
||||
nomadro.com {
|
||||
encode gzip
|
||||
reverse_proxy 127.0.0.1:4003
|
||||
}
|
||||
|
||||
@@ -24,6 +24,16 @@ www.nomadro.com A 107.173.30.245
|
||||
|
||||
若使用 Cloudflare,需关闭代理(灰云)或配置 Origin 指向该 IP,否则 Caddy 无法自动签发 HTTPS 证书。
|
||||
|
||||
### 若出现 ERR_TOO_MANY_REDIRECTS
|
||||
|
||||
1. Cloudflare DNS 中**删除所有 AAAA 记录**(IPv6 走 CF 代理会导致循环)
|
||||
2. 确认 `nomadro.com` 和 `www` 均为 **DNS only(灰云)**,A 记录指向 `107.173.30.245`
|
||||
3. 若开启 CF 代理,SSL 模式必须选 **Full (strict)**,不能选 Flexible
|
||||
4. 浏览器清除 nomadro.com 的 Cookie,或用无痕窗口访问
|
||||
5. Windows 刷新 DNS:`ipconfig /flushdns`
|
||||
|
||||
`www.nomadro.com` 会自动 301 跳转到 `nomadro.com`。
|
||||
|
||||
## 首次部署
|
||||
|
||||
```bash
|
||||
|
||||
Reference in New Issue
Block a user