1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67
|
=begin
= mod_ruby ȡ륬
[((<ܼ|URL:index.ja.jis.html>))
|((<RD|URL:install.ja.euc.rd>))]
* ((<ȡ>))
* ((<Apache>))
* ((<eRuby>))
== ȡ
ʲμmod_rubyȡ뤷ޤ
$ tar zxvf mod_ruby-x.y.z.tar.gz
$ cd mod_ruby-x.y.z/
$ ./configure.rb --with-apxs=/usr/local/apache/bin/apxs
$ make
# make install
== Apache
ʲΤ褦httpd.conf˵Ҥޤ
LoadModule ruby_module /usr/local/apache/libexec/mod_ruby.so
# ClearModuleList
# AddModule mod_ruby.c
<IfModule mod_ruby.c>
RubyRequire apache/ruby-run
# /rubyʲΥեRubyץȤȤƼ¹Ԥ
<Location /ruby>
SetHandler ruby-object
RubyHandler Apache::RubyRun.instance
</Location>
# *.rbxRubyץȤȤƼ¹Ԥ
<Files *.rbx>
SetHandler ruby-object
RubyHandler Apache::RubyRun.instance
</Files>
</IfModule>
== eRuby
erubyȡ뤷ʲΤ褦httpd.conf˵Ҥޤ
<IfModule mod_ruby.c>
RubyRequire apache/eruby-run
# /erubyʲΥեeRubyեȤư
<Location /eruby>
SetHandler ruby-object
RubyHandler Apache::ERubyRun.instance
</Location>
# *.rhtmleRubyեȤư
<Files *.rhtml>
SetHandler ruby-object
RubyHandler Apache::ERubyRun.instance
</Files>
</IfModule>
=end
|