aboutsummaryrefslogtreecommitdiffstats
path: root/apache2-site.conf-dist-mod_perl
diff options
context:
space:
mode:
authorArne Georg Gleditsch <argggh@lxr.linpro.no>2008-02-08 01:16:56 +0100
committerArne Georg Gleditsch <argggh@lxr.linpro.no>2008-02-08 01:16:56 +0100
commit2e28387613b7de506671f1657ed539d2470caff1 (patch)
tree4f50dd249d0dc15462909a9dab577913b8e29178 /apache2-site.conf-dist-mod_perl
parenta57b1d79950ce63209e052a1b1f394cf3c6eb588 (diff)
Add Apache config template for mod_perl.
Diffstat (limited to 'apache2-site.conf-dist-mod_perl')
-rw-r--r--apache2-site.conf-dist-mod_perl32
1 files changed, 32 insertions, 0 deletions
diff --git a/apache2-site.conf-dist-mod_perl b/apache2-site.conf-dist-mod_perl
new file mode 100644
index 0000000..bfee027
--- /dev/null
+++ b/apache2-site.conf-dist-mod_perl
@@ -0,0 +1,32 @@
+PerlInitHandler Apache2::Reload
+PerlOptions +GlobalRequest
+PerlRequire @@LXRROOT@@/lxrng_mod_perl.pl
+PerlModule LXRng::ModPerl
+
+Alias /@@LXRURL@@ "@@LXRROOT@@/webroot/"
+
+<Directory "@@LXRROOT@@/webroot/">
+ Options ExecCGI
+ AllowOverride None
+ Order deny,allow
+ Allow from all
+
+ <Files *>
+ SetHandler perl-script
+ PerlResponseHandler LXRng::ModPerl
+ </Files>
+
+ <Files favicon.ico>
+ SetHandler send-as-is
+ </Files>
+
+ <Files robots.txt>
+ SetHandler send-as-is
+ </Files>
+</Directory>
+
+<Directory "@@LXRROOT@@/webroot/.static/">
+ <Files *>
+ SetHandler send-as-is
+ </Files>
+</Directory>