i am very new with Caddy 2, I have two CaddyFile one of them work the other doesn't and the only difference they have is the path /api/* in root document. if any one can help with this would be great.
the following CaddyFile works fine:
www.mydomain.com:443 {
root * /var/www
file_server
log {
output file /var/log/caddy/access.log {
roll_size 1mb
roll_keep 4
roll_keep_for 24h
}
}
}
But the following doesn't, and i dont know what is wrong here.
www.mydomain.com:443 {
root /web/* /var/www
file_server
log {
output file /var/log/caddy/access.log {
roll_size 1mb
roll_keep 4
roll_keep_for 24h
}
}
}
please any help would be appreciated