|
caddy 配置文件问题,怎么就不对呢?
http://beggar.tk:80{
redir https://www.beggar.tk:443{url}
}
http://www.beggar.tk:80{
redir https://www.beggar.tk:443{url}
}
https://www.beggar.tk:443 {
gzip
tls [email protected]
root /www
proxy /2cb30ddb localhost:25930 {
websocket
header_upstream -Origin
}
fastcgi / /run/php/php7.0-fpm.sock php
}
测试不行
http://www.beggar.tk:80, http://beggar.tk:80{
redir https://www.beggar.tk:443{url}
}
https://www.beggar.tk:443 {
gzip
tls [email protected]
root /www
proxy /2cb30ddb localhost:25930 {
websocket
header_upstream -Origin
}
fastcgi / /run/php/php7.0-fpm.sock php
}
也不行
到底该怎么写
就是@和www都转移到https
|
|