A
Andrew Backer
Just getting started with apache, ruby, mod_ruby, and trying to do it
all at once.
I can't seem to get any of my .rbx files to be recognized, they keep
getting spit back at me as plain text. I assume there is some
configuration detail that I am missing, but I have not a clue. It
doesn't complain about loading the module, so I assume it's working
right
If anyone can help me it'd be much appreciated. Everything I can
really find referst to apache 1.3, or don't seem to work for me.
The basic info :
Server version: Apache/2.0.53
ruby 1.8.2 (2004-12-25) [i686-linux]
// in /etc/conf.d/apache2 ------------------
APACHE2_OPTS="-D SSL -D RUBY"
// modules.d/20_mod_ruby.conf -------
<IfDefine RUBY>
<IfModule !mod_ruby.c>
LoadModule ruby_module modules/mod_ruby.so
</IfModule>
</IfDefine>
# taken from the example file
# If the ruby module is installed, this will be enabled.
<IfModule mod_ruby.c>
# for Apache::RubyRun
RubyRequire apache/ruby-run
# exec files under /ruby as ruby scripts.
<Location /ruby>
SetHandler ruby-object
RubyHandler Apache::RubyRun.instance
Options ExecCGI
</Location>
# exec *.rbx as ruby scripts.
<Files *.rbx>
SetHandler ruby-object
RubyHandler Apache::RubyRun.instance
</Files>
# the rest is commented out
Thanks for any help,
Andrew
all at once.
I can't seem to get any of my .rbx files to be recognized, they keep
getting spit back at me as plain text. I assume there is some
configuration detail that I am missing, but I have not a clue. It
doesn't complain about loading the module, so I assume it's working
right
If anyone can help me it'd be much appreciated. Everything I can
really find referst to apache 1.3, or don't seem to work for me.
The basic info :
Server version: Apache/2.0.53
ruby 1.8.2 (2004-12-25) [i686-linux]
// in /etc/conf.d/apache2 ------------------
APACHE2_OPTS="-D SSL -D RUBY"
// modules.d/20_mod_ruby.conf -------
<IfDefine RUBY>
<IfModule !mod_ruby.c>
LoadModule ruby_module modules/mod_ruby.so
</IfModule>
</IfDefine>
# taken from the example file
# If the ruby module is installed, this will be enabled.
<IfModule mod_ruby.c>
# for Apache::RubyRun
RubyRequire apache/ruby-run
# exec files under /ruby as ruby scripts.
<Location /ruby>
SetHandler ruby-object
RubyHandler Apache::RubyRun.instance
Options ExecCGI
</Location>
# exec *.rbx as ruby scripts.
<Files *.rbx>
SetHandler ruby-object
RubyHandler Apache::RubyRun.instance
</Files>
# the rest is commented out
Thanks for any help,
Andrew