| | 19 | |
| | 20 | |
| | 21 | |
| | 22 | * Port mod_perl -> mod_perl2 for apache2/mod_deflate efficiency |
| | 23 | |
| | 24 | So far we need to do the following: |
| | 25 | |
| | 26 | in lib/startup.pl => use Apache::Registry => use ModPerl::Registry |
| | 27 | in httpd.conf => every Apache:: => ModPerl:: |
| | 28 | in perl/runpugs.pl => Make file reference absolute in open HTML |
| | 29 | in data/runpugs.html => make sure we reference /perl/runpugs.pl |
| | 30 | |
| | 31 | ------------------ http.conf config for mod_perl2 |
| | 32 | <IfModule mod_perl.c> |
| | 33 | PerlRequire /home/runpugs/apache/lib/startup.pl |
| | 34 | PerlTaintCheck On |
| | 35 | <IfModule mod_alias.c> |
| | 36 | Alias /perl/ /home/runpugs/apache/perl/ |
| | 37 | Alias /cgi-perl/ /home/runpugs/apache/cgi-perl/ |
| | 38 | </IfModule> |
| | 39 | <Location /perl> |
| | 40 | SetHandler perl-script |
| | 41 | PerlResponseHandler ModPerl::Registry |
| | 42 | PerlOptions +ParseHeaders |
| | 43 | Options +ExecCGI |
| | 44 | </Location> |
| | 45 | <Location /cgi-perl> |
| | 46 | SetHandler perl-script |
| | 47 | PerlHandler ModPerl::PerlRun |
| | 48 | Options +ExecCGI |
| | 49 | PerlSendHeader On |
| | 50 | </Location> |
| | 51 | </IfModule> |