Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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?

share|improve this question
    
Did you consider using apache? –  Khaled Oct 30 '10 at 12:31

3 Answers 3

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.

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

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.

share|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

I think BusyBox is just what I need!

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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