diff options
author | Michael Cummings <mcummings@gentoo.org> | 2006-02-26 15:11:47 +0000 |
---|---|---|
committer | Michael Cummings <mcummings@gentoo.org> | 2006-02-26 15:11:47 +0000 |
commit | 52765c9ee8b74c0916ad0dd93dafd5ce365950d4 (patch) | |
tree | f894ebbaf3046c8830a7cfaaf4189f425bb4c4e3 /www-apache | |
parent | Bug 77551 (diff) | |
download | gentoo-2-52765c9ee8b74c0916ad0dd93dafd5ce365950d4.tar.gz gentoo-2-52765c9ee8b74c0916ad0dd93dafd5ce365950d4.tar.bz2 gentoo-2-52765c9ee8b74c0916ad0dd93dafd5ce365950d4.zip |
Having problems getting these files to commit...
Diffstat (limited to 'www-apache')
-rw-r--r-- | www-apache/mod_perl/files/1.29/75_mod_perl.conf | 6 | ||||
-rw-r--r-- | www-apache/mod_perl/files/2.0.2/75_mod_perl.conf | 56 | ||||
-rw-r--r-- | www-apache/mod_perl/files/2.0.2/apache2-mod_perl-startup.pl | 24 |
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; |