## Require

Ruby/Asp require Ruby/XSLT, mod_ruby and (of course) Ruby ;)

Note: if you can't install mod_ruby, you can use Ruby/ASP in a CGI mode. For more details, see CGI section.
[top]

## Install

Install Ruby/Asp like this:

      $ tar zxvf ruby-asp_x.y.z.tar.gz
      $ cd ruby-asp
      $ ruby install.rb config
      $ ruby install.rb setup
      # ruby install.rb install

[top]

## Use Ruby/Asp

Add these lines to httpd.conf or in a .htaccess file

      RubySetEnv Global /var/www/global-asa
      RubyRequire apache/aspruby-run
      <Files ~ (\.asp)>
        SetHandler ruby-object
        RubyHandler Apache::AspRun.instance
      </Files>

[top]

## Config

`Global`
  Global is the nerve center of a Ruby/Asp application, in which the global.asa may reside defining the web application's event handlers.
`MailHost`
  The mail host is the smtp server that the below Mail config directives will use when sending their emails. Default : localhost.
`MailPort`
  SMTP port. Default : 25.
`MailErrorsFrom`
  Default NONE, set this to specify the default mail address placed in the From: mail header for server errors.
`MailErrorsTo`
  No default, if set, ASP server errors, error code 500, that result while compiling or running scripts under Ruby/Asp will automatically be emailed to the email address set for this config.
`ErrorFile`
  URI for error redirection.
`StateDir`
  State files for ASP application go to this directory. Default : /tmp

[top]