A small application with no dependencies to expose a local folder as an HTTP server. It includes a file explorer and a Markdown renderer.
MIT License
Bot releases are hidden (Show)
Published by patrickdappollonio 5 days ago
From this release forward, http-server
will only generate etags for files smaller than 5 Megabytes (5 * 1024 * 1024). This value is configurable, and using a smaller value will use less RAM.
Full Changelog: https://github.com/patrickdappollonio/http-server/compare/v2.5.0...v2.5.1
Published by patrickdappollonio 18 days ago
Many thanks to @muse-sisay for adding support for custom 404 handling and solving a longstanding feature request from 2021! (#7).
Full Changelog: https://github.com/patrickdappollonio/http-server/compare/v2.4.0...v2.5.0
Published by patrickdappollonio 21 days ago
A new feature and a fix to our recent release of _redirections
was updated in this release:
For those of you living in the edge and already using the _redirections
file, there was a bug that if a specific redirections file was crafted, some matches would incorrectly match an empty path. For example assume a URL called /docs/
with the following redirections file:
/docs/:foo /docs/:foo/overview permanent
This would incorrectly match a URL of http://example.com/docs
to be redirected to http://example.com/docs//overview
. We've added a test to ensure this case doesn't repeat again.
For some mission-critical sites, using http-server
truly is just a way to show your websites (HTML-made) to the world without leaking potentially important information while at it.
This release allows you to specify --disable-directory-listing
in any of the configuration forms and automatically return a HTTP 404 Not Found
response if you land on a directory that doesn't include an index. This will also play nicely with an upcoming feature to return a customized 404 page (and potentially returning 200 instead of 404 in those pages, to allow for SPAs to be rendered via http-server
).
Full Changelog: https://github.com/patrickdappollonio/http-server/compare/v2.3.0...v2.4.0
Full Changelog: https://github.com/patrickdappollonio/http-server/compare/v2.1.4...v2.1.5
Published by patrickdappollonio over 6 years ago
Published by patrickdappollonio over 6 years ago
Published by patrickdappollonio over 6 years ago
Published by patrickdappollonio over 6 years ago