apache run rhtml

0. 將eruby執行檔放在cgi-bin下

cp /usr/bin/eruby /usr/local/apache2/cgi-bin

vi httpd.conf 1.加入mod_suby.so

LoadModule ruby_module   modules/mod_ruby.so

2.加入rhtml

 AddType application/x-httpd-eruby .rhtml
 Action application/x-httpd-eruby /cgi-bin/eruby

3.指定用eruby

<IfModule mod_ruby.c>
 php?name=Ruby" onclick="tagshow(event)" class="t_tag">RubyRequire apache/eruby-run
  <Files *.rhtml>
  RubyHandler Apache::ERubyRun.instance
  </Files>
</IfModule>