Skip to content

Caddyfile Example (directory listing and basicauth)

Last updated on January 16, 2021

domain.com {
        basicauth / {
                test hashpassword_generated_by_caddy-hash-password
        }
        root *  /www
        file_server browse
}

You already voted!
Published inLinux

Be First to Comment

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.