static-file-server
static-file-server copied to clipboard
Feature Request: only show the root index.html when show-listing: false
When the "show-listing: false". "https://IP:PORT/" => 404 page not found "https://IP:PORT/folder" => 404 page not found
Only the "show-listing: true", the "index.html" can show correctly.
Should we add new args "--index" to custom index.html file. So that we can config
show-listing: false
index: index.html
to make
"https://IP:PORT/" =>"https://IP:PORT/index.html" work correctly "https://IP:PORT/folder" => 404 page not found
It works like Nginx Conf:
server {
listen 80 default_server;
listen [::]:80 default_server ipv6only=on;
root /usr/share/nginx/html;
index index.html index.htm;
}