Hello,
Apache 2.2.4
Ruby 1.8.6
mod_ruby 1.2.6
I try to use RubyInitHandler:
=========================
.htaccess
RubyRequire myhandlers.rb
<Files *.html>
SetHandler ruby-object
RubyInitHandler MyInitHandler.instance
==========================
myhandlers.rb
require ‘singleton’
class MyInitHandler
include Singleton
def init( r )
raise ‘in init’
end
end
===============================
- Method “init” of my handler was not be called. Why?
- I try to write wrong class name for RubyInitHandler, and also no
error:
RubyInitHandler _____MyInitHandler.instance - RubyFixupHandler works! All is OK.