Hacker News new | ask | show | jobs
by robbles 3917 days ago
What's the disadvantage to being "overkill" that this remedies? nginx is very easy to install, and a static web server configuration is pretty much the default one. Is this faster? Does it use less memory?
1 comments

I think the main advantage here is that it's a one-binary-file webserver. Very simple to install and ideal for file sharing among coworkers or similar situations. A modern equivalent of "python -m SimpleHTTPServer".
Yes, "python -m SimpleHTTPServer" is too slow.
Too slow for what?
'python -m SimpleHTTPServer' is actually fairly terrible if you try to use it to share a file amongst coworkers. Try it and you'll see, downloads will actually fail.

It also freaks out if the root dir is blown away, which can be quite common if you're trying to use it with a static site generator.

'python -m SimpleHTTPServer' is great for serving files to yourself but that's about it.