Hello mod_perl 2 users,
I have 3 questions please:
1) How do you specify the path to your custom module,
so that Apache 2 can load it at the startup?
I'm using mod_perl-2.0.4-6.el5 with CentOS Linux 5.5 and
have the following lines in /etc/httpd/conf.d/perl.conf:
LoadModule perl
blocking mode
$sock->opt_set(APR::Const::SO_NONBLOCK => 0);
$sock->send(POLICY);
my $slog = $c->base_server()->log();
$slog->info('served socket policy to: ', $c->remote_ip());
Apache2::Const::OK;
}
Regards
Alex
On Thu, Oct 21
Thanks Ryan and Torsten -
2010/10/21 Torsten Förtsch :
> On Thursday, October 21, 2010 15:21:37 Alexander Farber wrote:
>> [error] Can't locate object method "log" via package
>> "Apache2::ServerRec" at /etc/httpd/SocketPolicy.pm line 39.\n
>
> you p
Or maybe I've looked wrong and you do need to loop in Perl?
On Thu, Oct 21, 2010 at 5:20 PM, Alexander Farber
wrote:
> 2) I've looked at
> http://svn.apache.org/viewvc/apr/apr/trunk/network_io/unix/sendrecv.c?view=markup
> If APR::Socket::send() is autogenerated from apr_so
Even though my logs show that 1 send-call usually suffices
(I have a site with 1 visitor/3 min), I've updated my script.
Not sure if returning DECLINED is a good idea.
And if you know a way to log into access_log
instead of error_log, please tell me.
Thank you
Alex
package SocketPolicy;
use s
Hello,
I have a simple protocol handler which writes a string to client
socket (source code below).
I would like to make that string configurable through httpd.conf, so
that I could say there:
Listen 843
MyPolicyString"blah"
PerlModule SocketPolic
Wow, thank you - I'll try it out