When you installed mod_perl on the Stronghold server, did you indicate that
you wanted to install support for perl authentication handlers? (I think
adding PERL_AUTHEN=1 to the "perl Makefile.PL" command is the way to do
this.) Sorry to be so vague, but since I use "EVERYTHING=1" I really have
never had to deal with this issue before.
-----Original Message-----
From: HORNER, J. (JH8) [mailto:[EMAIL PROTECTED]]
Sent: Friday, June 09, 2000 9:25 AM
To: '[EMAIL PROTECTED]'
Cc: '[EMAIL PROTECTED]'
Subject: PerlAuthenHandler
What are the rules for using the PerlAuthenHandler?
I have a timeout module that works great on my Apache 1.3.12/mod_perl 1.24,
and if I put the directives directly in the httpd.conf file.
When I try to put the stuff in the httpd.conf file on my "Stronghold/2.4.1
Apache/1.3.3 C2NetEU/2409 Doorkeeper/2.0 (Unix) mod_perl/1.21 configured"
server,
the service doesn't start.
Here are the entries on the first server:
PerlSetEnv PERL5LIB lib/perl
PerlRequire conf/startup.pl
PerlFreshRestart On
PerlModule Apache::Registry
<Directory /data/2jnetworks/test>
AuthType Basic
AuthName TEST
AuthUserFile /usr/local/apache/conf/www_passwd
AuthGroupFile /usr/local/apache/conf/www_group
require group 2jnetworks
PerlAuthenHandler Apache::TimeOut
PerlSetVar TimeLimit 15
</Directory>
Here are the entries for the second server:
PerlSetEnv PERL5LIB lib/perl
PerlRequire conf/startup.pl
PerlFreshRestart On
PerlModule Apache::Registry
<Directory /data/httpd/docs/jhorner>
AuthName Test
AuthType Basic
AuthUserFile /usr/local/apache/conf/www_passwd
AuthGroupFile /usr/local/apache/conf/www_group
require group test
PerlAuthenHandler Apache::TimeOut
PerlSetVar TimeOut 15
</Directory>
When I put the PerlAuthenHandler entries into an .htaccess file, the server
will start, but I get:
/data/httpd/docs/jhorner/.htaccess: Invalid command 'PerlAuthenHandler',
perhaps mis-spelled or defined by a module not included in the server
configuration
I have other perl handler type things in the httpd.conf file, but nothing
else gives this error, any ideas?
Thanks,
JJ