Created
February 9, 2011 13:55
-
-
Save zdavatz/818508 to your computer and use it in GitHub Desktop.
mod_ruby.conf Windows Apache 2.2.17 placed in C:\Apache2.2\conf\extra
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Note: /usr/local/apache/libexec/mod_ruby.so is just an example. | |
# You should specify the correct path to mod_ruby.so. | |
LoadModule ruby_module modules/mod_ruby.so | |
# # If ClearModuleList is used in your httpd.conf, you should use AddModule | |
# # to activate the ruby module. | |
# AddModule mod_ruby.c | |
# If the ruby module is installed, this will be enabled. | |
<IfModule mod_ruby.c> | |
# for Apache::RubyRun | |
RubyRequire apache/ruby-run | |
#RubyRequire 'C:\Ruby-1.8.6-oniguruma\lib\ruby\1.8\apache\ruby-run' | |
# exec files under /ruby as ruby scripts. | |
<Location /ruby> | |
SetHandler ruby-object | |
RubyHandler Apache::RubyRun.instance | |
Options ExecCGI | |
</Location> | |
# exec *.rbx as ruby scripts. | |
<Files *.rbx> | |
SetHandler ruby-object | |
RubyHandler Apache::RubyRun.instance | |
</Files> | |
# # for Apache::ERubyRun | |
# RubyRequire apache/eruby-run | |
# | |
# # handle files under /eruby as eRuby files by eruby. | |
# <Location /eruby> | |
# SetHandler ruby-object | |
# RubyHandler Apache::ERubyRun.instance | |
# </Location> | |
# | |
# # handle *.rhtml as eruby files. | |
# <Files *.rhtml> | |
# SetHandler ruby-object | |
# RubyHandler Apache::ERubyRun.instance | |
# </Files> | |
# # for Apache::ERbRun | |
# RubyRequire apache/erb-run | |
# | |
# # handle files under /erb as eRuby files by ERb. | |
# <Location /erb> | |
# SetHandler ruby-object | |
# RubyHandler Apache::ERbRun.instance | |
# </Location> | |
# # for debug | |
RubyRequire auto-reload | |
</IfModule> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment