I've just installed http-server
via:
npm install --global http-server
I want to set up a server that will show me my directory listing for testing and learning purposes. I've already experimented with:
-d
Show directory listings (defaults totrue
)
-i
Display autoIndex (defaults totrue
)
But all the time after creating a server it opens index.html instead of directory listing.
This is more or less what I'd like to get instead of opening index.html:
What I would like to achieve:
-i
Display autoIndex (defaults totrue
)
This is what makes http-server
display the index (enabled by default), you can turn this off like that:
http-server -i false
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With