I'm trying to find the most basic HTTP deamon possible.

All it needs to do is allow me to access local files through a browser using the http:// protocol.

(I can't use file://)

Would be great if it was something that only had functionality for serving pages on localhost. Portable/lightweight would be great too!

Maybe a single script?

link|improve this question

60% accept rate
Did you consider using apache? – Khaled Oct 30 '10 at 12:31
feedback

3 Answers

up vote 2 down vote accepted

thttpd is probably as small as I can think of without going into the in-kernel http servers like khttpd. It's not directly windows compatible, but someone came up with a version built in Cygwin.

link|improve this answer
This also looks like a very good option. – Acorn Oct 30 '10 at 13:23
feedback

lighttpd is fairly light, it uses around 10MiB and is available for Windows and Linux.

To have lower memory usage, I think you'll need to look at web servers for embedding.

link|improve this answer
The important thing is not so much the size, but the simplicity, and it not having unnecessary functionality. Ideally it would maybe just be a single script that I could run. – Acorn Oct 30 '10 at 12:37
Even apache if it has to serve only html files from single directory will have around a dozen or two lines in config file. I didn't really try this with lighttpd but I'd be surprised if lighttpd would be more complicated. – Hubert Kario Oct 30 '10 at 12:43
feedback

I think BusyBox is just what I need!

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.