[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

[Q] cannot exec *.rbx with mod_ruby

kwa

10/14/2003 12:20:00 PM

I'm setting up Apache2(2.0.40) + mod_ruby(1.0.7) + eruby(1.0.4).
I succeeded to execute *.rhtml as eruby script, but failed to
execute *.rbx as mod_ruby script.
(platform: RedHat Linux 8.0)

httpd.conf:
--------------------
LoadModule ruby_module /usr/lib/httpd/modules/mod_ruby.so
<IfModule mod_ruby.c>
RubyRequire apache/ruby-run
RubyRequire apache/eruby-run
#RubyRequire auto-reload
<Files *.rbx>
SetHandler ruby-object
RubyHandler Apache::RubyRun.instance
#Options ExecCGI
</Files>
<Files *.rhtml>
SetHandler ruby-object
RubyHandler Apache::ERubyRun.instance
</Files>
</IfModule>
--------------------

When I comment out a line 'Options Exec CGI',
Apache2 reports the following error.
---------
[Tue Oct 13 07:42:48 2003] [error] access to /var/www/html/test.rbx
failed for (null), reason: Options ExecCGI is off in this directory
---------

when I remove the comment and enable 'Options Exec CGI',
Apache2 reports the following error.
---------
[Tue Oct 13 07:42:41 2003] [error] mod_ruby: error in ruby!
/usr/lib/ruby/1.8/apache/ruby-run.rb:70:in `load': loading
from unsafe file /var/www/html/test.rbx (SecurityError)!!from
/usr/lib/ruby/1.8/apache/ruby-run.rb:70:in `handler'!
---------

I tried mod_ruby version 1.1.1 instead of 1.0.7.
I got the same result.
Please give me an advice or hint.

---
kwa