perl-modperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Arnold <darn...@northcoast.com>
Subject On-the-Fly
Date Sat, 03 Jul 2004 22:38:36 GMT
All,

Tried this in my httpd.conf:

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

But got this error when I tried to restart server:

[root@ps-114a-2k apache2]$bin/apachectl graceful
Syntax error on line 1204 of /usr/local/apache2/conf/httpd.conf:
Invalid command 'return', perhaps mis-spelled or defined by a module not
included in the server configuration


Any suggestions or explanation?

-- 
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


Mime
View raw message