summaryrefslogtreecommitdiff
path: root/www/mod_ruby/files
diff options
context:
space:
mode:
authorAkinori MUSHA <knu@FreeBSD.org>2001-03-05 12:35:23 +0000
committerAkinori MUSHA <knu@FreeBSD.org>2001-03-05 12:35:23 +0000
commit8751bc0197dcc99a4b449c80f782de8146acbc1c (patch)
treed026c7b904745166388afe6736364ed272c7b506 /www/mod_ruby/files
parentFix name of xforms library (xforms.0 -> forms.0). (diff)
Bentofy. Show some instruction and point at the example file and the
documents instead of directly modifying httpd.conf by apxs -A.
Notes
Notes: svn path=/head/; revision=39088
Diffstat (limited to 'www/mod_ruby/files')
-rw-r--r--www/mod_ruby/files/httpd.conf.mod_ruby19
1 files changed, 19 insertions, 0 deletions
diff --git a/www/mod_ruby/files/httpd.conf.mod_ruby b/www/mod_ruby/files/httpd.conf.mod_ruby
new file mode 100644
index 000000000000..a4e24b799b46
--- /dev/null
+++ b/www/mod_ruby/files/httpd.conf.mod_ruby
@@ -0,0 +1,19 @@
+#
+# Example configuration for the mod_ruby module
+#
+# $FreeBSD$
+#
+
+LoadModule ruby_module libexec/apache/mod_ruby.so
+
+AddModule mod_ruby.c
+
+<IfModule mod_ruby.c>
+ AddHandler ruby-script .rb
+
+# Alias /ruby/ /usr/local/www/cgi-bin/
+# <Location /ruby/>
+# SetHandler ruby-script
+# Options ExecCGI
+# </Location>
+</IfModule>