List All Files in Directory Instead of Looking for Index File

Hey! I am currently trying to setup a file list on 3 of my subdomains.
What is the directive needed to make Caddy NOT look for an index file, and rather list all files in the targeted root directory?

Thank you!

Hi @GreemDev, welcome to the Caddy community!

The directive you’re looking for is browse.

https://caddyserver.com/docs/browse

That said, even with this directive active, Caddy will still look for an index file - the directive works when it can’t find one. If you’ve got any in directories you’d rather use browse for, you’ll want to rename them.

2 Likes

Alright, that should work. Thank you!

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.