Skip to main content

Timeline for Simple command line HTTP server

Current License: CC BY-SA 3.0

12 events
when toggle format what by license comment
Apr 5, 2022 at 5:13 comment added human To add CORS support: http-server -p 3000 --cors
Dec 17, 2020 at 15:02 comment added c z The module may be "light", node.js isn't. You'd be running a JS runtime just to serve static files.
Sep 14, 2017 at 16:14 comment added Jabba First I tried "python3 -m http.server", but it's single-threaded and only 1 client can download at a time, the others need to wait. This solution with Node.js works better, due to the async nature of Node. If you want to share a file with several people, use this.
Sep 14, 2017 at 12:52 comment added Megidd It works. I have a Node project on a FreeBSD machine, I just run npm install -D http-server inside project directory and then add the following lines to my package.json file: "scripts": { "build": "webpack && cd src/public && http-server" }, now I just need to run npm run build on project directory to start the HTTP server, listening on port 8080 by default.
S Oct 7, 2014 at 13:32 history suggested Mike Cron CC BY-SA 3.0
Reverting incorrect change; see -a option on module repo for default behaviour: https://github.com/nodeapps/http-server
Oct 7, 2014 at 13:24 review Suggested edits
S Oct 7, 2014 at 13:32
Oct 4, 2014 at 18:04 history edited ashes999 CC BY-SA 3.0
added 2 characters in body
S Oct 4, 2014 at 16:19 history edited HalosGhost CC BY-SA 3.0
Fix typo and clarify URL; use code blocks for whole asides
S Oct 4, 2014 at 16:19 history suggested Mike Cron CC BY-SA 3.0
Fix typo and clarify URL.
Oct 4, 2014 at 15:33 review Suggested edits
S Oct 4, 2014 at 16:19
Oct 2, 2014 at 22:02 review First posts
Oct 2, 2014 at 22:24
Oct 2, 2014 at 22:01 history answered ashes999 CC BY-SA 3.0