v2ray icon indicating copy to clipboard operation
v2ray copied to clipboard

trojan 类型添加无法使用其他端口

Open mengxueForgoogle opened this issue 2 years ago • 2 comments

提示443端口被占用 (我部署了网站在443和80端口) 使用脚本中的修改配置选项将端口修改为6666 (提示80端口被占用?)

mengxueForgoogle avatar Aug 16 '23 07:08 mengxueForgoogle

告! (重启) Caddy 失败

检测到运行失败, 自动执行测试运行.

V2Ray 正在运行, 跳过测试

测试运行 Caddy ..

Caddy 运行失败信息: 2023/08/16 08:09:37.193 INFO using provided configuration {"config_file": "/etc/caddy/Caddyfile", "config_adapter": ""} 2023/08/16 08:09:37.193 WARN No files matching import glob pattern {"pattern": "/etc/caddy/sites/*.conf"} 2023/08/16 08:09:37.195 WARN Caddyfile input is not formatted; run 'caddy fmt --overwrite' to fix inconsistencies {"adapter": "caddyfile", "file": "/etc/caddy/Caddyfile", "line": 7} 2023/08/16 08:09:37.195 WARN admin admin endpoint disabled 2023/08/16 08:09:37.195 INFO http.auto_https enabling automatic HTTP->HTTPS redirects {"server_name": "srv0"} 2023/08/16 08:09:37.195 INFO tls.cache.maintenance started background certificate maintenance {"cache": "0xc0003c5a80"} 2023/08/16 08:09:37.196 INFO tls cleaning storage unit {"description": "FileStorage:/root/.local/share/caddy"} 2023/08/16 08:09:37.196 INFO http enabling HTTP/3 listener {"addr": ":6666"} 2023/08/16 08:09:37.196 INFO http.log server running {"name": "srv0", "protocols": ["h1", "h2", "h3"]} 2023/08/16 08:09:37.196 INFO tls.cache.maintenance stopped background certificate maintenance {"cache": "0xc0003c5a80"} Error: loading initial config: loading new config: http app module: start: listening on :80: listen tcp :80: bind: address already in use 测试结束, 请按 Enter 退出.

mengxueForgoogle avatar Aug 16 '23 08:08 mengxueForgoogle

@mengxueForgoogle

你有程序 占用了 80 443 不能用 CADDY 的,你可以用 no-auto-tls 参数来自己配置TLS

233boy avatar Aug 16 '23 14:08 233boy