David Arnold wrote:
Stas,

Here's a little report to answer your questions below about my error_log:

With:

<Location /public>
        PerlAccessHandler 'sub {\
                                return Apache::Const::FORBIDDEN\
                                unless
shift->connection->remote_ip=~m/^\Q10.3.4./;\
                                }'
</Location>

In my httpd.conf, then:

[EMAIL PROTECTED] apache2]$bin/apachectl graceful

[EMAIL PROTECTED] apache2]$tail logs/error_log
[Sat Jul 03 16:48:48 2004] [notice] Graceful restart requested, doing restart
[Sat Jul 03 16:48:50 2004] [notice] Digest: generating secret for digest
authentication ...
[Sat Jul 03 16:48:50 2004] [notice] Digest: done
[Sat Jul 03 16:48:50 2004] [notice] Apache/2.0.49 (Unix) mod_perl/1.99_14
Perl/v5.8.4 mod_ssl/2.0.49 OpenSSL/0.9.7d DAV/2 configured -- resuming
normal operations

After this, I am able to access /public and there is no further action in
error_log.

Add:

PerlSwitches -wT

at the beginning of your httpd.conf.
http://perl.apache.org/docs/2.0/user/config/config.html#C_PerlSwitches_

or/and add:

use strict;
use warnings;

to your code.


-- __________________________________________________________________ Stas Bekman JAm_pH ------> Just Another mod_perl Hacker http://stason.org/ mod_perl Guide ---> http://perl.apache.org mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com http://modperlbook.org http://apache.org http://ticketmaster.com

--
Report problems: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.org/maillist/email-etiquette.html



Reply via email to