A Basic CGI Script
#!/usr/bin/ruby puts "Content-type: text/html\n\n" puts "<html><body>This is a test</body></html>" If you called this script test.cgi then visiting http://www.example.com/test.cgi