Re: Modperl as backend for mobile apps

2016-10-31 Thread A. Warnier
On 31.10.2016 10:26, Michel Jansen wrote: Goodmorning, We are using Apache2-ModPerl for the backend of a mobile app and would like to switch off the standard ErrorDocuments in Apache2. Is this possible? Have a look here : http://httpd.apache.org/docs/2.4/mod/core.html#errordocument I belie

Re: Apache 2.4, mod_perl 2.0.9, APR::SockAddr->port() missing ?

2016-10-30 Thread A. Warnier
the load balancer or proxy itself, use conn_rec->client_ip and conn_rec->client_addr. " With a corresponding discussion in : https://github.com/eprints/eprints/issues/214 Interesting how a change which was originally made as an improvement/clarification, can have so many unforeseen ripple

Re: Apache 2.4, mod_perl 2.0.9, APR::SockAddr->port() missing ?

2016-10-30 Thread A. Warnier
On 30.10.2016 01:56, Randolf Richardson wrote: Do the following work for you? $r->connection->remote_addr->port $r->connection->local_addr->port I'll check again, but $c->remote_addr is supposed to not exist anymore in httpd 2.4, as far as I know. Ind

Apache 2.4, mod_perl 2.0.9, APR::SockAddr->port() missing ?

2016-10-29 Thread A. Warnier
Hi. Apologies to Steve and Torsten for posting this previously to them directly. It somehow slipped my mind that this would have been a better place. Anyway thus : I am in the process of converting some mod_perl AAA code from Apache 2.2 to 2.4, and I encounter the following problem : Apache e

Re: Cache refresh each 50 queries?

2016-10-05 Thread A. Warnier
duce that number, experimentally). The reason is well explained in that page above. On 05.10.2016 11:30, A. Warnier wrote: Additional hint : Normally, when Apache goes through the "effort" of setting up a new child process, you would want that this child process then runs for as lo

Re: Cache refresh each 50 queries?

2016-10-05 Thread A. Warnier
Additional hint : Normally, when Apache goes through the "effort" of setting up a new child process, you would want that this child process then runs for as long as possible (for as many requests as possible), to avoid the repeated overhead of restarting another child process. In an Apache pre

question on Apache2_4::AuthCookie

2016-04-06 Thread A. Warnier
Hi. I have (a long time ago) created an AAA module based originally on Apache2::AuthCookie (a copy and rewrite, not a sub-class). Now I need to adapt this to Apache 2.4. I have read all the docs at https://metacpan.org/source/MSCHOUT/Apache-AuthCookie-3.24/lib/Apache2_4/AuthCookie.pm, and follo

Re: Mod Perl and Basic Authentication

2016-03-02 Thread A. Warnier
On 02.03.2016 17:53, Matthias Schmitt wrote: Hello, I am trying to handle basic authentication using mod_perl 2.0.9 and Apache 2.4.18. I am getting the first request to my resource. The user is requesting the URL without any username or password. My program should refuse the access to this r

Re: $r->requires and register_auth_provider

2015-12-22 Thread A. Warnier
Hi Sergei. My turn to thank you for providing the information below (and also to Michael Schout of course). That will also be invaluable to me, when I get around to update my own mod_perl AAA modules. On 22.12.2015 17:57, Sergei Gerasenko wrote: Yep, I can see what I should do now. For the be

Apache2 filter

2015-10-01 Thread A. Warnier
Hi. I am trying to write an Apache2 request filter. According to the online tutorial (http://perl.apache.org/docs/2.0/user/handlers/filters.html#Output_Filters). I have this so far : package MyFilter; ... use base qw(Apache2::Filter); ... use constant BUFF_LEN => 4096; sub handler : FilterRe

Re: Compiling 2.0.9 with Strawberry Perl 5.20 on windows (64Bit)

2015-09-26 Thread A. Warnier
On 25.09.2015 17:13, Thomas den Braber wrote: I am trying to compile Modperl 2.0.9 on windows with Strawberry Perl 5.20.2 and Apache 2.2.31 (all 64 bit) Preferable would be to use Apache 2.4 but that might be a bridge to far. I use the binary version from Apachelounge. My first question is, is