Mod_ruby(.rbx) newbie

Hi, I was wondering why my .rbx script just print the out out of my ruby
scripts ignoring the html tags?

Thanks

Hi, I was wondering why my .rbx script just print the out out of my
ruby scripts ignoring the html tags?

Did you setup your httpd.conf file accordingly and restart the web
server?

Sample config for rbx recognition:

LoadModule ruby_module libexec/httpd/mod_ruby.so
AddModule mod_ruby.c

RubyRequire apache/ruby-run RubyRequire auto-reload SetHandler ruby-object RubyHandler Apache::RubyRun.instance
···


David Heinemeier Hansson.
http://www.loudthinking.com/ – Broadcasting Brain

I did exactly what you suggest and still spitting out the result of my
cgi scripts.

The output of my helloworld.rbx scripts are as follows:

HTTP/1.1 200 OK
Content-Type: text/html

Hello World

Hello World!



HelloWorld on mod_ruby
Gateway interface: CGI-Ruby/1.1

David Heinemeier Hansson wrote:

···

Hi, I was wondering why my .rbx script just print the out out of my
ruby scripts ignoring the html tags?

Did you setup your httpd.conf file accordingly and restart the web server?

Sample config for rbx recognition:

LoadModule ruby_module libexec/httpd/mod_ruby.so
AddModule mod_ruby.c

RubyRequire apache/ruby-run RubyRequire auto-reload SetHandler ruby-object RubyHandler Apache::RubyRun.instance -- David Heinemeier Hansson. http://www.loudthinking.com/ -- Broadcasting Brain

Very handy, thanks! I’ve added it here:

http://rubyforge.org/snippet/browse.php?by=lang&lang=1

for future reference…

Thanks,

Tom

···

On Sun, 2004-01-18 at 06:42, David Heinemeier Hansson wrote:

Hi, I was wondering why my .rbx script just print the out out of my
ruby scripts ignoring the html tags?

Did you setup your httpd.conf file accordingly and restart the web
server?

Sample config for rbx recognition:

Eliminate the line that prints the HTTP status (you can leave the
content-type) and you should be in business.

Cheers,
Trey

Ruby Tuesday wrote:

···

I did exactly what you suggest and still spitting out the result of my
cgi scripts.

The output of my helloworld.rbx scripts are as follows:

HTTP/1.1 200 OK
Content-Type: text/html

Hello World

Hello World!



HelloWorld on mod_ruby
Gateway interface: CGI-Ruby/1.1

David Heinemeier Hansson wrote:

Hi, I was wondering why my .rbx script just print the out out of my
ruby scripts ignoring the html tags?

Did you setup your httpd.conf file accordingly and restart the web
server?

Sample config for rbx recognition:

LoadModule ruby_module libexec/httpd/mod_ruby.so
AddModule mod_ruby.c

RubyRequire apache/ruby-run RubyRequire auto-reload SetHandler ruby-object RubyHandler Apache::RubyRun.instance -- David Heinemeier Hansson. http://www.loudthinking.com/ -- Broadcasting Brain

In article 1074621434.15470.28.camel@hal,

···

Tom Copeland tom@infoether.com wrote:

Very handy, thanks! I’ve added it here:

http://rubyforge.org/snippet/browse.php?by=lang&lang=1

It is shipped with mod_ruby in the http.conf.mod_ruby file.

Ollivier ROBERT -=- EEC/AMI -=- ollivier.robert@eurocontrol.int
Usenet Canal Historique FreeBSD: The Power to Serve!