.htaccess implementation for user/password accessible folder?

What is needed to run caddy with an htaccessfile to allow access to a folder http://example.com/restricted with username and password?
How do i place this part in my Caddyfile?

Edit: found out that is actually quiet easy and straight forward:
https://caddyserver.com/docs/basicauth

1 Like