Building a 30 line HTTP server in Ruby ruby-lang.orgko/ Install Ruby on Rails with Apache on Debian 8 Ruby require 'socket' server = TCPServer.new 1337 while session = server.accept request = session.gets puts request session.print "HTTP/1.1 200\r\n" # 1 session.print "Content-Type: text/html\r\n" # 2 session.print "\r\n" # 3 session.print "Hello world" #4 session.close end ruby server.rb # othe..