httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Zeno Davatz <zdav...@gmail.com>
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 <tevans.uk@googlemail.com> wrote:

>> This is my mod_ruby.conf settings on Linux and there it just works fine:
>>
>> LoadModule ruby_module modules/mod_ruby.so
>>
>> # 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: https://gist.github.com/818788

> 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 127.0.0.1] Attempt to serve directory:
>> C:/Users/zdavatz/de.oddb.org/doc/
>>
>> with these settings here: https://gist.github.com/818654
>>
>> This option here https://gist.github.com/818519 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
me:

"GET / HTTP/1.1" 304 -

Best
Zeno

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message