News for hackers. Stuff that matters.
Re:Web server in one line of bash by hyperair on Friday August 16, 2013 @12:33AM (#6222183)
$ 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.

Re:Web server in one line of bash by mcpherrinm on Friday August 16, 2013 @01:20AM (#6222302)
Woah, I didn't realize busybox had an httpd. Truly a sweet piece of software.
Re:Web server in one line of bash by voltagex_ on Friday August 16, 2013 @01:25AM (#6222323)
It often won't, as features ("applets") are chosen at compile-time.
Re:Web server in one line of bash by voltagex_ on Friday August 16, 2013 @12:43AM (#6222209)
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.

Re:Web server in one line of bash by justincormack on Friday August 16, 2013 @03:52AM (#6222707)
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).
Re:Web server in one line of bash by voltagex_ on Friday August 16, 2013 @09:51AM (#6223948)
Hmm, there's another investigation to do.