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
|