http-server

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

Stars
76
Committers
6

Bot releases are hidden (Show)

http-server - v2.5.1

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.

What's Changed

Full Changelog: https://github.com/patrickdappollonio/http-server/compare/v2.5.0...v2.5.1

http-server - v2.5.0

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).

What's Changed

New Contributors

Full Changelog: https://github.com/patrickdappollonio/http-server/compare/v2.4.0...v2.5.0

http-server - v2.4.0

Published by patrickdappollonio 21 days ago

A new feature and a fix to our recent release of _redirections was updated in this release:

Redirecting on empty paths

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.

Preventing directory listing

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).

What's Changed

Full Changelog: https://github.com/patrickdappollonio/http-server/compare/v2.3.0...v2.4.0

http-server - v2.1.5 Latest Release

Published by patrickdappollonio about 2 months ago

What's Changed

Full Changelog: https://github.com/patrickdappollonio/http-server/compare/v2.1.4...v2.1.5

http-server - https://github.com/patrickdappollonio/http-server/releases/tag/0.0.4

Published by patrickdappollonio over 6 years ago

http-server - https://github.com/patrickdappollonio/http-server/releases/tag/0.0.3

Published by patrickdappollonio over 6 years ago

http-server - https://github.com/patrickdappollonio/http-server/releases/tag/0.0.2

Published by patrickdappollonio over 6 years ago

http-server - https://github.com/patrickdappollonio/http-server/releases/tag/0.0.1

Published by patrickdappollonio over 6 years ago