Michael Preslar wrote:
[EMAIL PROTECTED] conf]# /usr/sbin/httpd -l
Compiled in modules:
core.c
prefork.c
http_core.c
mod_so.c
(so mod_perl is not compiled in)
I assume that means it Dynamic.
Check your AddModule/LoadModule lines and be sure it _IS_ loaded.
<IfModule mod_perl.c> ... </IfModule> works.. So I know mod_perl is
installed.
Not neccessarily, it may never actually go in the if because mod_perl is not
really installed.
What version of mod_perl? Not sure. CPAN wants me to upgrade to 1.29
(though I cant currently without destroying Plesk)
perl -Mmod_perl -e 'print $mod_perl::VERSION'
if that doesn't work
find /path/to/perl5/lib -type -f -name "mod_perl.pm"
find /path/to/perl5/lib -type -f -name "Constants.pm"
<IfModule mod_perl.c>
<LocationMatch "^/+?">
PerlTransHandler Apache::BadRefs;
</LocationMatch>
</IfModule>
In and of its self, this section is fine.
# declare these here since I dont have an Apache::Constants
use constant OK => "200";
use constant DECLINED => "404";
Pardon the phrasing, but why the hell not? Its part of mp1 core ?
sub handler {
my $r = shift;
return OK unless $r->header_in('Referer') ne '';
return OK unless $r->header_in('Referer') ne '-';
if ($r->header_in('Referer') =~ /$badwords/i) {
return DECLINED;
} else {
return OK;
}
}
syntacitally, thats correct, though I would have sooner shot myself before the
constant hack.
Now.. All seems right.. To me at least.. But whenever I restart apache,
it errors out (and Ive yet to find anything in the logs saying why or
what is causing the problem)
cd /usr/local/apache/bin
gdb
run -X httpd -d ..
example of the above with comments here:
http://httpd.apache.org/dev/debugging.html#gdb
--
END
------------------------------------------------------------
What doesn't kill us can only make us stronger.
Nothing is impossible.
Philip M. Gollucci ([EMAIL PROTECTED]) 301.254.5198
Consultant / http://p6m7g8.net/Resume/
Senior Developer / Liquidity Services, Inc.
http://www.liquidityservicesinc.com
http://www.liquidation.com
http://www.uksurplus.com
http://www.govliquidation.com
http://www.gowholesale.com