apache2 / ruby question

R

Ralph Smith

I can get apache2 to execute .rbx files, but I can't get it to execute .rb files. Here is
the relevant part of my httpd.conf:

<IfModule mod_ruby.c>
# for Apache::RubyRun
RubyRequire apache/ruby-run
<FilesMatch "\.(rbx|rb)$">
Options +ExecCGI
SetHandler ruby-object
RubyHandler Apache::RubyRun.instance
</FilesMatch>

# handle *.rhtml as eruby files.
RubyRequire apache/eruby-run
<FilesMatch "\.rhtml$">
SetHandler ruby-object
RubyHandler Apache::ERubyRun.instance
</FilesMatch>

# debug
RubyRequire auto-reload
</IfModule>


Why don't .rb files execute?


Aso, I can get embedded ruby to work in .rhtml files, but not .html files. Is there a way that I can
get that to work?

thanks,
Ralph
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,012
Latest member
RoxanneDzm

Latest Threads

Top