Guest User

Untitled

a guest
Feb 21st, 2018
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. # test.rb
  2. #!/usr/bin/env ruby
  3. print "HTTP/1.0 200 OK\r\n"
  4. print "Content-type: text/html\r\n\r\n"
  5. print "<html><body>Hello World!</body></html>\r\n"
  6.  
  7. # .htaccess
  8. AddHandler cgi-script .rb
  9. Options +ExecCGI +MultiViews
  10.  
  11. # Apaches error_log
  12. [Mon Oct 23 10:07:54 2006] [error] [client 127.0.0.1] malformed header from script. Bad header=HTTP/1.0 200 OK: /Users/jeena/Sites/foo/v3/admin/test.rb
Add Comment
Please, Sign In to add comment