RubyInithandler under Apache 2.2.4
veejar <[email protected]> Fri, 3 Aug 2007 16:34:54 +0300
| Newsgroups | gmane.comp.apache.mod-ruby |
|---|---|
| Message-ID | <[email protected]> |
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
</Files>
==========================
myhandlers.rb
===========================
require 'singleton'
class MyInitHandler
include Singleton
def init( r )
raise 'in init'
end
end
===============================
I try to open index.html and have no errors (no error "500"). Why? In
init-method is raise operator.