From dfd07aeb4950f925807e1cc32912d34fca0ff44e Mon Sep 17 00:00:00 2001 From: Michael Cummings Date: Sun, 26 Feb 2006 15:11:47 +0000 Subject: Having problems getting these files to commit... --- www-apache/mod_perl/files/1.29/75_mod_perl.conf | 6 +++ www-apache/mod_perl/files/2.0.2/75_mod_perl.conf | 56 ++++++++++++++++++++++ .../files/2.0.2/apache2-mod_perl-startup.pl | 24 ++++++++++ 3 files changed, 86 insertions(+) create mode 100644 www-apache/mod_perl/files/1.29/75_mod_perl.conf create mode 100644 www-apache/mod_perl/files/2.0.2/75_mod_perl.conf create mode 100644 www-apache/mod_perl/files/2.0.2/apache2-mod_perl-startup.pl (limited to 'www-apache/mod_perl/files') 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 @@ + + + LoadModule perl_module modules/libperl.so + + + 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 @@ + + + LoadModule perl_module modules/mod_perl.so + + + + + #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/ + + + + SetHandler perl-script + PerlResponseHandler Apache2::Status + Order deny,allow + Deny from all + Allow from 127.0.0.1 + + + + + SetHandler perl-script + PerlResponseHandler ModPerl::PerlRun + Options -Indexes ExecCGI + PerlOptions +ParseHeaders + + + PerlModule ModPerl::Registry + #set Apache::Registry Mode for /perl Alias + # To set subdirectories to use perl set the following + # and comment the orignial: + # + + SetHandler perl-script + PerlResponseHandler ModPerl::Registry + Options -Indexes ExecCGI + PerlSendHeader On + + + #set Apache::PerlRun Mode for /cgi-perl Alias + + SetHandler perl-script + PerlResponseHandler ModPerl::PerlRun + Options -Indexes ExecCGI + PerlSendHeader On + + + + 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; -- cgit v1.2.3-65-gdbad