LordPenguin666 / XTool

使用 go 编写的 Xray 一键安装脚本, 支持 xtls-rprx-vision
131 stars 29 forks source link

fix: Safari redirect problem #6

Closed myleo1 closed 1 year ago

myleo1 commented 1 year ago

如果Caddyfile中不配置auto_https disable_redirects的话,Safari在访问搭建所用域名的时候,会redir至8443端口,域名后面会带端口号,比较难看。 Chrome和Firefox则没有这个问题。 需要建站的话,还是redir至443会好一些。 配置auto_https disable_redirects后,Safari才会根据如下配置redir至xray所监听的443端口: :80 { redir https://{host}{url} }

关于auto_https的Caddy文档:https://caddyserver.com/docs/caddyfile/options#auto-https