From: tom@... (Tom Danielsen) Date: 2002-11-26T08:24:29+09:00 Subject: Re: Q: mod_ruby may be NPH? On 25 Nov 2002 06:28:25 -0800, kwatch wrote: > I have a trouble with using mod_ruby 1.0.1. > I got the string "Content-Type: text/html" in browser when accessed to > mod_ruby script. > > > I wrote a script 'sample.rbx': > .---------------------------------------- > #!/usr/bin/ruby > > print "Content-Type: text/html\n\n" > > print < > >

mod_ruby test

> > > END > .---------------------------------------- > http://www.rubydoc.org/books/modruby/modruby.pdf , chapter 5 r = Apache.request r.content_type = 'text/html' r.send_http_header exit(Apache::OK) if r.header_only? print <

mod_ruby test

END -t