I run caddy with docker. I have my website loaded to /etc/license inside the docker container. When I serve from the root, with the following Caddyfile:
$MYDOMAIN {
root * /etc/license
file_server
}
It works as expected, my website loads when i go to $MYDOMAIN. Now I want to put this website under the route /license so when I go to $MYDOMAIN/license I see my website. It seems that it should it be straightforward but I tried everything I could think of and I can't get it to work.
This is my latest attempt Caddyfile:
$MYDOMAIN {
handle /license {
root * /etc/license
file_server
}
# handle other routes
}
Does anybody know how to make it work the way I want and why the current setup doesn't work. Thank you