PierreZ / goStatic

A really small static web server for Docker
GNU General Public License v2.0
391 stars 77 forks source link

Add a flag to disable directory listing #5

Closed obilodeau closed 6 years ago

obilodeau commented 7 years ago

There should be a way to disable directory listing. It can reveal files that shouldn't be visible.

As a work-around, I know I can put empty index.html files in every directories but it is not convenient for large file trees.

PierreZ commented 7 years ago

It seems easy to implement, it could be an easy flag. Do you want to do the PR? 👍

obilodeau commented 7 years ago

Cool to know but no. I've switched to an nginx-alpine container instead and my workshop is now over.

dudeskeeroo commented 5 years ago

I mentioned this on another issue, but Google takes us here too. Here's a workaround:

Create an index.html file in the directory that you want to disable listings in I've created an empty one and now file listings don't occur.