Class: Web::RubyRun
- Includes:
- Singleton
- Defined in:
- lib/web/sapi/apache.rb
Overview
Overview
Web::RubyRun executes ruby-web scripts in Apache under mod_ruby. It is a modified version of mod_ruby’s Apache::RubyRun
Example of httpd.conf
RubyRequire web/sapi/apache
<Location /ruby>
SetHandler ruby-object
RubyHandler Web::RubyRun.instance
</Location>
Instance Method Summary collapse
Instance Method Details
#handler(r) ⇒ Object
89 90 91 92 93 94 95 96 97 |
# File 'lib/web/sapi/apache.rb', line 89 def handler(r) status = check_request(r) return status if status != Apache::OK filename = setup(r) Web::open do Web::load(filename) end return Apache::OK end |