httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Zeno Davatz <>
Subject Re: [users@httpd] Re: SetHandler mod_ruby Apache 2.2.17 Windows
Date Wed, 09 Feb 2011 16:54:22 GMT
Dear Tom

Thanks for the reply.

On Wed, Feb 9, 2011 at 5:22 PM, Tom Evans <> wrote:

>> This is my mod_ruby.conf settings on Linux and there it just works fine:
>> LoadModule ruby_module modules/
>> # taken from the example file
>> # If the ruby module is installed, this will be enabled.
>> # 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>
>> So if you mean this "Options ExecCGI" then yes, to my understanding
>> Ruby is executed as CGI on Apache, at least on Linux it is.
> OK. That config is WAAAAAY different to your posted windows config. In
> your windows config, you have "SetHandler ruby-object" at the vhost
> level, on linux you do not. It's a big difference!

This is my vhosts Linux config:

> According to [1], ExecCGI is only required for eruby.

Well it is in our Linux mod_ruby Config as well and we do not use Eruby.

>> Now Apache on Windows delivers me the same result (as so is the following)
>> [error] [client] Attempt to serve directory:
>> C:/Users/zdavatz/
>> with these settings here:
>> This option here I just tried to see if
>> I get the same result or not.

> OK, replace your vhost conf file with this one[2]. Does that work?

Thanks for the file. This just displays me the content of my index.rbx
as plain text but ruby is not actually executed. The access log tells

"GET / HTTP/1.1" 304 -


The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message