static-file-server icon indicating copy to clipboard operation
static-file-server copied to clipboard

Feature Request: only show the root index.html when show-listing: false

Open yankay opened this issue 3 years ago • 0 comments

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;
}

yankay avatar Jul 12 '22 07:07 yankay