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

Add enable-directory-listings flag #65

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

aaronjamt
Copy link

This controls what happens when someone tries to request a path which is just a directory (not a file): When true (default), responds with a browsable directory listing (current behavior) When false, responds with the same 404 page as is provided when attempting to access a nonexistant file This prevents someone from browsing all of your static files by simply walking through the directory tree

This controls what happens when someone tries to request a path which is just a directory (not a file):
When true (default), responds with a browsable directory listing (current behavior)
When false, responds with the same 404 page as is provided when attempting to access a nonexistant file
This prevents someone from browsing all of your static files by simply walking through the directory tree
@JesseKlaasse
Copy link

@PierreZ Any chances that this PR will be merged? For my project, I need the directory listing to be disabled. I could use the fallback page workaround, but that's not really what I want.

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

Successfully merging this pull request may close these issues.

2 participants