Hello folks, recently had Caddy recommended to me so I figured I’d give it a try.
Everything has been going well so far, but I can’t seem to find any equivalent to fancyindex_ignore from Nginx’s Fancy Ignore.
For those unfamiliar with what this does, it ignores a list of files/folders so they’re not listed. If someone knows what the folder or file is, they can manually type it in to get to it, but it’s not listed by nginx.
In this case, I’m looking for some sort of “ignore” to add to “browse” so certain folders aren’t listed. I still want the files in those folders to be completely accessible, I just don’t want the folder to be advertised.
Is this accomplishable and I’ve overlooked something? Impossible?
You could take that, alter it to manually check that the file/folder doesn’t match what you don’t want to list, and supply the template back in the Caddyfile. It’d be a bit complicated if you’re not familiar with text/template already, though.
You could also open a ticket at https://github.com/mholt/caddy/issues and request this as a feature. One of our contributors might be able to implement what you’re after.
I appreciate pointing me in the right direction for some customization. I’ve never touched the Go language in any way, shape, or form, so it may take me some time to dig through this information and come up with the solution I’m looking for.
Thanks again for the information and I’ll see what I can come up with. If I find a more detailed/specific solution, I will definitely share it here in case anyone else runs into the same thing.