I’m trying to redir www to non-www but it doesn’t work.
My caddyfile is like this:
alston.top {
root /home/alston/www/public
tls yangjianfeng_11@126.com
gzip
log /home/alston/www/Caddylog/access.log
errors /home/alston/www/Caddylog/error.log
git {
repo git@github.com:AlstonYang/AlstonYang.github.io.git
path /home/alston/www/public
key /home/alston/.ssh/id_rsa
interval 100
clone_args --recursive
pull_args --recurse-submodules
}
}
www.alston.top {
redir alston.top
}
it works perfect without the second site. However, it stucks at “Activating privacy features…” when turning on caddy with the www site.
Anyone knows how to fix it? Thanks in advance.