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:
[EMAIL PROTECTED] 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?
You miss \ line continuation at the end of each line that continues.
Also since it seems that you write from scratch in mp2, why not to drop Apache::compat and use the real mp2 syntax?
-- __________________________________________________________________ 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