0

Ruby Web Server with SSI

Posted by stuporglue on Mar 14, 2010 in Programming

For a class I had to write a threaded webserver that would insert a banner at the top of each page (bonus if it was randomly selected) and some dynamic content at the bottom. I chose to do it in Ruby, and was rewarded with about 100 lines less of code than the Java version. See the Java version starting point other students used here: http://fragments.turtlemeat.com/javawebserver.php. It could be a little cleaner, but it’s not too bad.

Tags: , ,

Original content on this page is under the Creative Commons Attribution-ShareAlike 3.0 License unless otherwise noted.

If you found this page particularly helpful, I'd love to hear from you. A link to this page from your blog or website would also be appreciated.

I'm the real Michael Moore