FileIndex like Nginx/Autoindex possible?

Hi all,

since some days I’m using caddy as a reverse proxy in my local network, which works really good.
I want also to switch from an existing nginx-docker to caddy, but there is a little challgenge for me.
I need a file index page like in NGinx with AutoIndex (no html page, only listing files in folder).
I know that caddy has the file_server function, but my service, for which I need nginx, cannot handle it.

Is there a possibility inside of caddy to use that index pages like in nginx?

Thanks for help,
Dominik

Search for index and browse here:

1 Like

Thanks for the information, but with this the internal file_server will be used which is not possible for my use-case :slightly_frowning_face:

Or is there a wrong configuration from my side?

My config looks like:

@sub8 host caddy.xxx.org
handle @sub8 {
root * /static/xxx
file_server browse
}

But then I got it like this:
Caddy

What I need is the classic like:
Classic

Thanks and best regards,
Dominik

You can provide your custom template for the file listing, so you can design it however you like

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