折腾了几个小时,踩了几个坑,终于拼凑出了可行的配置


Caddyfile Caddy 2.8.2 /path必须有*

{

admin off
order reverse_proxy before route
order webdav last
auto_https off

}
:8080 {

reverse_proxy /admin* 127.0.0.1:2343
root *  ..\..\..\www
php_fastcgi 127.0.0.1:9000
encode zstd gzip 
file_server
header -Server

}

xray.json xray 1.8.4 不能有 acceptProxyProtocol

"inbounds": [

    {
        "port": 2343,"listen": "127.0.0.1","protocol": "vmess","settings": {"clients": [{"id": "99b9aead-6a5d-428f-bdff-1b5f12883fd5"}]},
        "streamSettings": {"network": "ws","wsSettings": {"path": "/admin/"}}
    }

]

标签: none

添加新评论