Hacker News new | ask | show | jobs
by hyperair 4698 days ago
$ busybox httpd

Works even in an initramfs, and in some embedded systems. Serves up the current directory, and you can even have CGI scripts in cgi-bin.

2 comments

Woah, I didn't realize busybox had an httpd. Truly a sweet piece of software.
It often won't, as features ("applets") are chosen at compile-time.
Thanks! I'd forgotten about busybox, but that's often how your home router is doing things.

* Side note: if it is, make sure your router manufacturer provides the GPL source release.

I dont think they usually use it as the web server, as they need some scripting not static pages only. The smallest server I know of that can do cgi is webfsd).
Hmm, there's another investigation to do.