Xray安装配置Vless-XHTTP

Xray 项目2024年底推出了 XHTTP 协议,能更好地穿透GFW。本教程参考 这里 。Xray安装配置Vless-XTLS教程参考 这里 。 本教程在ubuntu-24.04全新VPS测试通过。下面的配置为 极简配置 ,完整配置参考 这里 。 需要准备二个域名,如 reality.mydomain.com ,cdn.mydomain.com ,并托管到cloudfalre。后面的域名需要点亮橙色云朵,并启用grpc,参考 这里 第一点。 1、申请证书,参考 这里 1.4 或 这里 第5点 curl https://get.acme.sh | sh alias acme.sh=~/.acme.sh/acme.sh apt install socat acme.sh --set-default-ca --server letsencrypt acme.sh --issue -d reality.mydomain.com -d cdn.mydomain.com -k ec-256 --standalone mkdir -p /root/cert acme.sh --installcert -d reality.mydomain.com --ecc --key-file /root/cert/private.key --fullchain-file /root/cert/cert.crt 2、安装xray,参考 这里 sudo bash -c "$(curl -L https://github.com/XTLS/Xray-install/raw/main/install-release.sh)" @ install -u root systemctl enable --now xray 编辑xray服务器端配置文件 nano /usr/local/etc/xray/config.json { "log": { "loglevel": "info" }, "routing": { "domainStrategy": "IPI...