稳定访问你站(大概)
最近有点冷清,好像大家都经常被这个挡住?

据我观察使用特定的 Cloudflare CDN 节点不会碰到这个错误,比如 172.67.200.115
Windows Hosts
PowerShell 执行
Start-Process -FilePath notepad.exe -Verb runas -ArgumentList "$env:SystemRoot\system32\drivers\etc\hosts"
在 Hosts 文件后加入并保存
172.67.200.115 xjtu.app
Linux Hosts
Bash 执行
sudo nano /etc/hosts
在 Hosts 文件后加入并保存
172.67.200.115 xjtu.app
MacOS Hosts
应该和 Linux 差不多?但是我没用过搞不清楚
Xray
如果使用 Xray 内置 DNS 服务器,可以配置解析
注意 outbound 需要配置 targetStrategy 确保请求地址是 IP 而不是 FQDN
如果 Xray 不是系统 DNS,inbound 需要配置 sniffing.destOverride
{
"dns": {
"hosts": {
"domain:xjtu.app": "172.67.200.115"
}
},
"inbounds": [
{
"sniffing": {
"enabled": true,
"destOverride": [
"http",
"tls",
"quic"
]
}
}
],
"outbounds": [
{
"targetStrategy": "UseIP"
}
]
}
Mihomo/Sing-box
应该和 Xray 同理,但是我也不熟,需要注意类似 sniffing 的功能可能会重写系统解析的 IP
DHT 直接用这个经常 Internal Server Error(同时过 CDN 正常)
我也不知道为什么 🫠
admin
#4 · (edited)
无状态垃圾桶 /etc/caddy/Caddyfile
xjtu.app {
# https://developers.cloudflare.com/support/troubleshooting/restoring-visitor-ips/restoring-original-visitor-ips/#caddy
reverse_proxy unix//var/discourse/shared/webxj/nginx.http.sock {
header_up X-Forwarded-For {http.request.header.CF-Connecting-IP}
}
log {
output file /var/log/caddy/xap
}
}
不知道是不是原来的 header_up X-Forwarded-For {http.request.header.CF-Connecting-IP}配置导致的CF Error 1000,最近给注释掉了。
另外直接通过IP访问Internal Error也很奇怪,我也不知道什么原因。