Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # test.rb
- #!/usr/bin/env ruby
- print "HTTP/1.0 200 OK\r\n"
- print "Content-type: text/html\r\n\r\n"
- print "<html><body>Hello World!</body></html>\r\n"
- # .htaccess
- AddHandler cgi-script .rb
- Options +ExecCGI +MultiViews
- # Apaches error_log
- [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