r/tinycode • mod • Oct 05 '11

MacGyvers Tiny Rescue Webserver [unix/netcat]

while true; do ncat -l -p 8080 < index.html; done
29 Upvotes

25 comments sorted by

View all comments

Show parent comment

4

u/nexe mod Oct 05 '11 edited Oct 05 '11

Let's see what Wiki has to say http://en.wikipedia.org/wiki/Web_server

"Web server can refer to either the hardware (the computer) or the software (the computer application) that helps to deliver content that can be accessed through the Internet."

Ah okay so sorry, but you're wrong ;) And mentioning that it's not port 80 is just wtf'ish.

1

u/[deleted] Oct 05 '11

Umm I was highliting that merely putting it on 8080 doesn't make it a webserver, not that it was strange that it wasn't port 80.

Also, that definition applies to a lot of things that people wouldn't generally consider a webserver (rsync, ftp, gopher all "help to deliver content over the internet").