diff options
author | ivan <ivan> | 2007-01-21 13:26:44 +0000 |
---|---|---|
committer | ivan <ivan> | 2007-01-21 13:26:44 +0000 |
commit | 625f6e43b7345f04cf4ece8dd9ff963b9b09f338 (patch) | |
tree | bca9f683b3b5dd5d1a7e27ca6e2cb86afb6334e7 /htetc | |
parent | 75d0fe9902d6fa2d5623648c13ba3676fe462810 (diff) |
mod_perl v2, it finally happened
Diffstat (limited to 'htetc')
-rw-r--r-- | htetc/freeside-base1.conf (renamed from htetc/freeside-base.conf) | 5 | ||||
-rw-r--r-- | htetc/freeside-base2.conf | 21 |
2 files changed, 25 insertions, 1 deletions
diff --git a/htetc/freeside-base.conf b/htetc/freeside-base1.conf index f8ebece9e..3f6bd0ee3 100644 --- a/htetc/freeside-base.conf +++ b/htetc/freeside-base1.conf @@ -1,4 +1,7 @@ +#PerlModule Apache::DBI + PerlModule HTML::Mason + <Directory %%%FREESIDE_DOCUMENT_ROOT%%%> AuthName Freeside AuthType Basic @@ -9,7 +12,7 @@ AddHandler perl-script .cgi .html PerlHandler HTML::Mason </Files> <Perl> -require "/usr/local/etc/freeside/handler.pl"; +require "%%%MASON_HANDLER%%%"; </Perl> </Directory> diff --git a/htetc/freeside-base2.conf b/htetc/freeside-base2.conf new file mode 100644 index 000000000..38f784068 --- /dev/null +++ b/htetc/freeside-base2.conf @@ -0,0 +1,21 @@ +PerlModule Apache2::compat + +#PerlModule Apache::DBI + +PerlModule HTML::Mason +PerlSetVar MasonArgsMethod CGI +PerlModule HTML::Mason::ApacheHandler + +PerlRequire "%%%MASON_HANDLER%%%" + +<Directory %%%FREESIDE_DOCUMENT_ROOT%%%> +AuthName Freeside +AuthType Basic +AuthUserFile /usr/local/etc/freeside/htpasswd +require valid-user +<Files ~ (\.cgi|\.html)> +SetHandler perl-script +PerlHandler HTML::Mason +</Files> +</Directory> + |