summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Cummings <mcummings@gentoo.org>2006-02-26 15:11:47 +0000
committerMichael Cummings <mcummings@gentoo.org>2006-02-26 15:11:47 +0000
commitdfd07aeb4950f925807e1cc32912d34fca0ff44e (patch)
tree9c41b6868f99281fcf8ff739449ab06a36d9feb7 /www-apache/mod_perl/files
parentBug 77551 (diff)
downloadhistorical-dfd07aeb4950f925807e1cc32912d34fca0ff44e.tar.gz
historical-dfd07aeb4950f925807e1cc32912d34fca0ff44e.tar.bz2
historical-dfd07aeb4950f925807e1cc32912d34fca0ff44e.zip
Having problems getting these files to commit...
Diffstat (limited to 'www-apache/mod_perl/files')
-rw-r--r--www-apache/mod_perl/files/1.29/75_mod_perl.conf6
-rw-r--r--www-apache/mod_perl/files/2.0.2/75_mod_perl.conf56
-rw-r--r--www-apache/mod_perl/files/2.0.2/apache2-mod_perl-startup.pl24
3 files changed, 86 insertions, 0 deletions
diff --git a/www-apache/mod_perl/files/1.29/75_mod_perl.conf b/www-apache/mod_perl/files/1.29/75_mod_perl.conf
new file mode 100644
index 000000000000..edf5a11b5c1f
--- /dev/null
+++ b/www-apache/mod_perl/files/1.29/75_mod_perl.conf
@@ -0,0 +1,6 @@
+<IfDefine PERL>
+ <IfModule !mod_perl.c>
+ LoadModule perl_module modules/libperl.so
+ </IfModule>
+</IfDefine>
+
diff --git a/www-apache/mod_perl/files/2.0.2/75_mod_perl.conf b/www-apache/mod_perl/files/2.0.2/75_mod_perl.conf
new file mode 100644
index 000000000000..96455b51e209
--- /dev/null
+++ b/www-apache/mod_perl/files/2.0.2/75_mod_perl.conf
@@ -0,0 +1,56 @@
+<IfDefine PERL>
+ <IfModule !mod_perl.c>
+ LoadModule perl_module modules/mod_perl.so
+ </IfModule>
+</IfDefine>
+
+<IfModule mod_perl.c>
+ #PerlTrace all
+ PerlRequire "/etc/apache2/modules.d/apache2-mod_perl-startup.pl"
+
+ #Provide two aliases to the same cgi-bin directory,
+ #to see the effects of the 2 different mod_perl modes
+ #for Apache2::Registry Mode
+ Alias /perl/ /var/www/localhost/perl/
+ #for Apache2::Perlrun Mode
+ Alias /cgi-perl/ /var/www/localhost/perl/
+
+ <IfModule mod_access.c>
+ <Location /perl-status>
+ SetHandler perl-script
+ PerlResponseHandler Apache2::Status
+ Order deny,allow
+ Deny from all
+ Allow from 127.0.0.1
+ </Location>
+ </IfModule>
+
+ <Directory /home/*/public_html/perl>
+ SetHandler perl-script
+ PerlResponseHandler ModPerl::PerlRun
+ Options -Indexes ExecCGI
+ PerlOptions +ParseHeaders
+ </Directory>
+
+ PerlModule ModPerl::Registry
+ #set Apache::Registry Mode for /perl Alias
+ # To set subdirectories to use perl set the following
+ # and comment the orignial:
+ # <Location ~ "^/perl/.*\.pl$">
+ <Location "^/perl/*.pl>
+ SetHandler perl-script
+ PerlResponseHandler ModPerl::Registry
+ Options -Indexes ExecCGI
+ PerlSendHeader On
+ </Location>
+
+ #set Apache::PerlRun Mode for /cgi-perl Alias
+ <Location /cgi-perl/*.pl>
+ SetHandler perl-script
+ PerlResponseHandler ModPerl::PerlRun
+ Options -Indexes ExecCGI
+ PerlSendHeader On
+ </Location>
+
+</ifModule>
+
diff --git a/www-apache/mod_perl/files/2.0.2/apache2-mod_perl-startup.pl b/www-apache/mod_perl/files/2.0.2/apache2-mod_perl-startup.pl
new file mode 100644
index 000000000000..afc048ac125b
--- /dev/null
+++ b/www-apache/mod_perl/files/2.0.2/apache2-mod_perl-startup.pl
@@ -0,0 +1,24 @@
+use lib qw(/home/httpd/perl);
+
+# enable if the mod_perl 1.0 compatibility is needed
+#use Apache2::compat ();
+
+use ModPerl::Util (); #for CORE::GLOBAL::exit
+
+use Apache2::RequestRec ();
+use Apache2::RequestIO ();
+use Apache2::RequestUtil ();
+
+use Apache2::ServerRec ();
+use Apache2::ServerUtil ();
+use Apache2::Connection ();
+use Apache2::Log ();
+
+use APR::Table ();
+
+use ModPerl::Registry ();
+
+use Apache2::Const -compile => ':common';
+use APR::Const -compile => ':common';
+
+1;