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

Directory listings don't work with magic file 404.html #882

Open
clownfeces opened this issue Jun 4, 2024 · 2 comments
Open

Directory listings don't work with magic file 404.html #882

clownfeces opened this issue Jun 4, 2024 · 2 comments

Comments

@clownfeces
Copy link

If you are using a 404.html as magic file, then directory listings don't work anymore. The 404.html is displayed instead.

Environment Versions

  1. Linux Mint 21.2 (Kernel 5.15.0-107)
  2. Node version 12.22.9
  3. http-server version 14.1.1
@JorensM
Copy link

JorensM commented Jul 8, 2024

This could arguably be the expected behavior, but I guess maybe we could have an option to decide whether directory URLs should be displayed as 404 when 404.html is present or to display the directory.

@JorensM
Copy link

JorensM commented Jul 9, 2024

On second thought it does make sense that when -d is specified that directories should be displayed even when 404.html is present

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

No branches or pull requests

2 participants