TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Http-server, a simple zero-configuration command line http server

49 pointsby bitcoinsalmost 14 years ago

8 comments

mrudalmost 14 years ago
Have a look at gatling <a href="http://www.fefe.de/gatling/" rel="nofollow">http://www.fefe.de/gatling/</a> it's a http/ftp/smb server based on libowfat (-lowfat ;0) with ssl support. Contains basically everything you need to share a file. It is also quite scalable, see <a href="http://bulk.fefe.de/scalability/" rel="nofollow">http://bulk.fefe.de/scalability/</a> for an old benchmark.<p>One neat feature is that gatling disables the autoindex links for sorting the listing if wget is used to download/mirror a directory.<p>Gatling has a pretty good default configuration like automatically try to bound port 80 and if not available use port 8000 instead, automatically sharing the current directory etc. For a list of command-line configuration options have a look at <a href="http://paste.pocoo.org/show/409206/" rel="nofollow">http://paste.pocoo.org/show/409206/</a>
dolphensteinalmost 14 years ago
I built a simple zero-configuration FTP server that runs in a browser some time ago (<a href="http://ezyftpserver.com/" rel="nofollow">http://ezyftpserver.com/</a>). Been wondering if I should do the same with a HTTP server?
评论 #2664089 未加载
评论 #2664387 未加载
gourneaualmost 14 years ago
python -m SimpleHTTPServer
评论 #2664315 未加载
评论 #2665084 未加载
评论 #2663904 未加载
lmarinhoalmost 14 years ago
Looks nice, I was looking for something similar the other day, easily sharing a directory over HTTP from command line. I ended up writing a couple of very simple bash functions that added/removed the current directory to ~/Sites (I'm on a Mac). Apache did the rest.
sc68calalmost 14 years ago
<i>sigh</i><p>Not another "Download this shell script over insecure HTTP and pipe it to sh" gimmick. Really? While <a href="http://news.ycombinator.com/item?id=2661209" rel="nofollow">http://news.ycombinator.com/item?id=2661209</a> is <i>directly</i> above this item on the front page?<p>Have we learned nothing?
评论 #2664412 未加载
nodesocketalmost 14 years ago
Nice work guys, any gzip support for js, css, and static html?
d0vsalmost 14 years ago
Node.js. lol.
naughtysriramalmost 14 years ago
hey people, check out Lightnode<p><a href="http://www.ngspinners.com/lightnode/" rel="nofollow">http://www.ngspinners.com/lightnode/</a><p><a href="https://github.com/ngspinners/lightnode/" rel="nofollow">https://github.com/ngspinners/lightnode/</a>