You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is it possible to disable the directory listing? I'm using version 0.6.9 on Nix and the directory listing appears to be always on despite me not providing the -i flag.
The text was updated successfully, but these errors were encountered:
I think the -i flag means that simple-http-server will serve index.html files instead of the file listing if they exist. If they don't exist, the -i flag doesn't change anything.
I would also like to be able to disable the file listing.
Of course there's workarounds: make sure an index.html file exists and pass -i. And maybe --try-file will also achieve this? But it'd be nice to just have a cli flag.
This would actually be great in conjunction with--try-file, because it would allow redirecting the root path to that file as well. Combine all that with --open and you've basically got a way to open an HTML file on the command line while also serving required static assets.
Is it possible to disable the directory listing? I'm using version 0.6.9 on Nix and the directory listing appears to be always on despite me not providing the
-i
flag.The text was updated successfully, but these errors were encountered: