The problem I’m having:
I’m testing caddy in a local machine that I reach at
http://webserver.network.local
and it serves a static website generated with hugo.
I’m trying to serve a file listing from a subdirectory of the domain.
I want to serve some static files from
http://webserver.network.local/packages
with a directory listing, but I keep getting 404 when trying to access it. The hugo site works normally.
Caddy version:
caddy 2.6.2
How I installed and ran Caddy:
caddy was installed as a system package and runs from systemctl
System environment:
the server runs Debian 13.4 with systemd
Command:
systemctl start caddy
My complete Caddy config:
:80 {
handle /packages/ {
root * /var/www/html/packages
file_server {
browse
}
}
root * /var/www/html
file_server
}
I’ve always used apache, but wanted to try caddy. I feel like I’m missing something, because I’m sure this is trivial to obtain.
Thanks in advance for your help