abiosoft / caddy-docker

Docker container for Caddy
https://hub.docker.com/r/abiosoft/caddy/
MIT License
768 stars 315 forks source link

Presence of index.html sort-of breaks "browse <dir>" without "root <dir>" #125

Open hartwork opened 6 years ago

hartwork commented 6 years ago

Hi!

I was just about reporting this as a bug to Caddy when I noticed that it only happens in context of this very Docker image. When playing with the browse command I noticed that this Caddyfile

0.0.0.0 {
    errors stdout
    browse /
}

is not supported, because root / or so is needed to not get index.html display instead.

I would propose to either consider dropping index.html here or to make it more shiny and include a note that it may be standing in your way with the browse command.

What do you think?