summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Cummings <mcummings@gentoo.org>2007-01-12 18:12:24 +0000
committerMichael Cummings <mcummings@gentoo.org>2007-01-12 18:12:24 +0000
commit1cfca4f88a92f75999d4fac27d4d3e5f4b2f392d (patch)
treeaa6142f13c39ed458221bd4f73181f74ff664ff4 /www-apache
parentCleanup. (diff)
downloadgentoo-2-1cfca4f88a92f75999d4fac27d4d3e5f4b2f392d.tar.gz
gentoo-2-1cfca4f88a92f75999d4fac27d4d3e5f4b2f392d.tar.bz2
gentoo-2-1cfca4f88a92f75999d4fac27d4d3e5f4b2f392d.zip
bug 161292, missing 2.0.3 files added :)
(Portage version: 2.1.2_rc4-r8)
Diffstat (limited to 'www-apache')
-rw-r--r--www-apache/mod_perl/ChangeLog6
-rw-r--r--www-apache/mod_perl/files/2.0.3/75_mod_perl.conf56
-rw-r--r--www-apache/mod_perl/files/2.0.3/apache2-mod_perl-startup.pl24
3 files changed, 85 insertions, 1 deletions
diff --git a/www-apache/mod_perl/ChangeLog b/www-apache/mod_perl/ChangeLog
index 157301433f2c..c86e700cb9e3 100644
--- a/www-apache/mod_perl/ChangeLog
+++ b/www-apache/mod_perl/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for www-apache/mod_perl
# Copyright 2002-2007 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/www-apache/mod_perl/ChangeLog,v 1.30 2007/01/09 20:06:36 mcummings Exp $
+# $Header: /var/cvsroot/gentoo-x86/www-apache/mod_perl/ChangeLog,v 1.31 2007/01/12 18:12:24 mcummings Exp $
+
+ 12 Jan 2007; Michael Cummings <mcummings@gentoo.org>
+ +files/2.0.3/75_mod_perl.conf, +files/2.0.3/apache2-mod_perl-startup.pl:
+ bug 161292, missing 2.0.3 files added :)
*mod_perl-2.0.3 (09 Jan 2007)
diff --git a/www-apache/mod_perl/files/2.0.3/75_mod_perl.conf b/www-apache/mod_perl/files/2.0.3/75_mod_perl.conf
new file mode 100644
index 000000000000..96455b51e209
--- /dev/null
+++ b/www-apache/mod_perl/files/2.0.3/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.3/apache2-mod_perl-startup.pl b/www-apache/mod_perl/files/2.0.3/apache2-mod_perl-startup.pl
new file mode 100644
index 000000000000..afc048ac125b
--- /dev/null
+++ b/www-apache/mod_perl/files/2.0.3/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;