XHTTP 最简配置不通,请求帮助
#4353
-
caddy + vless + xhttp {
log {
output file /var/log/caddy/warn.log
level warn
format json {
time_local
time_format wall
}
}
email [email protected]
acme_dns cloudflare xxxxxxxxxxxxxxx
}
https://xxxxxxxx.com {
handle /path/* {
reverse_proxy http://127.0.0.1:1234
}
respond {remote_host} 200
} Xray Server Config {
"log": {
"loglevel": "debug",
"access": "/etc/xray/logs/access.log",
"error": "/etc/xray/logs/error.log",
"dnsLog": true
},
"inbounds": [
{
"listen": "127.0.0.1",
"port": 1234,
"protocol": "vless",
"settings": {
"clients": [
{
"id": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
}
],
"decryption": "none"
},
"streamSettings": {
"network": "xhttp",
"xhttpSettings": {
"path": "/path",
"mode": "auto"
}
},
"sniffing": {
"enabled": true,
"destOverride": ["http", "tls", "quic"]
}
}
],
"outbounds": [
{
"protocol": "freedom"
}
]
} Xray Server Logs
access.log
|
Beta Was this translation helpful? Give feedback.
Answered by
lxhao61
Feb 5, 2025
Replies: 1 comment 1 reply
-
你配置错误。启用 TLS/REALITY 时,默认使用 H2,正确配置参考 https://github.com/lxhao61/integrated-examples 中 Xray(VLESS+XHTTP)+Nginx\Caddy 示例。 |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
lhbdhr
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
你配置错误。启用 TLS/REALITY 时,默认使用 H2,正确配置参考 https://github.com/lxhao61/integrated-examples 中 Xray(VLESS+XHTTP)+Nginx\Caddy 示例。