You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by "HORNER, J. (JH8)" <JH...@ornl.gov> on 2000/06/09 15:24:56 UTC

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

RE: PerlAuthenHandler

Posted by Greg Estep <ge...@thinkronize.com>.
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:JH8@ornl.gov]
Sent: Friday, June 09, 2000 9:25 AM
To: 'modperl@apache.org'
Cc: 'jjhorner@bellsouth.net'
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