title: Simple Ruby "Hello, World" Program for Webrick Using Virtual Hosts
body: <p>I searched the internet for a "Hello, World" type program for Webrick in Ruby, but could not find anything that worked. I found <a href="https://stackoverflow.com/questions/6397515/how-to-run-a-simple-ruby-script-in-any-web-server-apache-or-mongrel-or-any-thin">this guide on SO</a> but for the life of me could not get it to work.</p>
  
  <p>Consulting the <a href="http://ruby-doc.org/stdlib-2.0.0/libdoc/webrick/rdoc/WEBrick.html" rel="nofollow noreferrer">Ruby Documentation for Webrick</a> led me to some code snippets that got me going in the right direction. There were no easy-to-follow tutorials so I wanted to add my answer on SO.</p>
  
  <p>I was using Ubuntu 14.04 without Apache or Nginx and wanted my server for a virtual host. Webrick by default does not respond to requests concurrently but for me this was a plus in addition to its small footprint. I was hoping to get it working without the Rails framework for an even lighter footprint.</p>