Douglas Livingstone
2005-01-28 18:34:31 UTC
Hi all,
I'm on windows xp trying, playing with Ruby on Apache. I've put this
in httpd.conf:
AddHandler cgi-script .rb
And this in index.rb:
#!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"
This comes up as a 500 error, with this in the log file:
malformed header from script. Bad header=HTTP/1.0 200 OK: index.rb
Any idea what I'm missing?
Thanks,
Douglas
I'm on windows xp trying, playing with Ruby on Apache. I've put this
in httpd.conf:
AddHandler cgi-script .rb
And this in index.rb:
#!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"
This comes up as a 500 error, with this in the log file:
malformed header from script. Bad header=HTTP/1.0 200 OK: index.rb
Any idea what I'm missing?
Thanks,
Douglas