Building a Simple Web Server with Ruby 2.0+ (Part 2)

1 · Jake Yesbeck · Oct. 18, 2015, noon
In a previous post, a very simple Ruby server was created to listen to HTTP requests. While great for a first step, this example server does nothing more than respond with “Hello World”. Greetings are nice and polite, but I think we can do better. Pro-filing A reasonable feature for this simple server is the ability to serve files. When retrieving files, the server must remain secure, only serving files that should be readable by clients. Additionally, if a requested file does not exist, the ser...