Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Idea: add optional directory listing feature #53

Open
aochagavia opened this issue Oct 1, 2015 · 4 comments
Open

Idea: add optional directory listing feature #53

aochagavia opened this issue Oct 1, 2015 · 4 comments

Comments

@aochagavia
Copy link

Currently, staticfile doesn't handle anything other than files. This means that if the URL points to a directory, staticfile will either serve a index.html file or it will return an error. I think it would be useful to provide a directory listing feature in cases where there is no index.html. Would this fit the scope of staticfile?

@reem
Copy link
Member

reem commented Oct 1, 2015

Yes, as long as the behavior was configurable, as there are certainly many cases where you do not want a directory listing to be publicly available.

@ehiggs
Copy link

ehiggs commented Oct 2, 2015

Maybe with .htaccess files? Or .htaccess.toml?

@aochagavia
Copy link
Author

Another alternative is to specify directly in the code the directories that will be served. None, all or a selection of directories.

@franza
Copy link
Contributor

franza commented Dec 10, 2015

I implemented this a couple of days ago for my own needs. Do you think that it can be merged into this repo?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants