Re: Where is the mod_perl development repo?

2017-03-09 Thread André Warnier
Hello. I am catching this at the end, but the general subject interests me, and I'd like to know more. Should I start a new thread ? and what best to name it ? My situation : I am not a hot-shot programmer nor perl expert, but over time I have written quite a few mod_perl-based pieces of code

Re: Cache refresh each 50 queries?

2016-10-04 Thread André Warnier
Hi. On 04.10.2016 10:17, SUZUKI Arthur wrote: [...] On 03.10.2016 16:57, SUZUKI Arthur wrote: Hello List, I'm sending this message to know if there are some hints/tips to help with the problem we're facing. The problem is that for a same query repeated over time, reply time can be as short a

Re: WELCOME to modperl@perl.apache.org

2016-10-03 Thread André Warnier
Hi and welcome indeed. Maybe one thing first : when posting to the list, do not just hit "reply" on a message that you received previously. Create a *new* message, with a subject corresponding to what you are asking. Then later, when someone responds, you can "reply" and keep the subject ident

Re: Bad rap

2016-06-13 Thread André Warnier
On 13.06.2016 14:09, John Dunlap wrote: We use Amazon Cloudfront for serving all of our static content. The only thing we load from Apache is an index.html file to bootstrap into Ember.js. In our experience, Cloudfront delivers static content to the browser 5-6 times faster than our servers can.

Re: random token re-used in subsequent requests [SOLVED]

2016-05-31 Thread André Warnier
On 31.05.2016 18:40, Vincent Veyron wrote: On Fri, 27 May 2016 09:29:36 +0200 André Warnier wrote: The above strongly hints at some flaw in the srand() of perl, when called by a 32-bit perl, on a 64-bit OS/machine. Maybe it is worth passing this info along to the perl (language) developers

Re: random token re-used in subsequent requests [SOLVED]

2016-05-27 Thread André Warnier
On 26.05.2016 16:01, Vincent Veyron wrote: On Mon, 16 May 2016 16:38:18 +0200 Vincent Veyron wrote: Out of five different servers, the code works fine on four machines, and a different token is generated every time the page is loaded or re-loaded. On one server however, a previous token is b

Re: random token re-used in subsequent requests

2016-05-18 Thread André Warnier
On 18.05.2016 01:23, Vincent Veyron wrote: On Tue, 17 May 2016 20:41:28 +0200 demerphq wrote: If you fork before you call (s)rand then each child process will have their own copy of the flag, which will be false, and thus will cause srand() to be called in the subprocess properly. So now I'

Re: random token re-used in subsequent requests

2016-05-17 Thread André Warnier
On 17.05.2016 20:26, demerphq wrote: On 17 May 2016 at 20:23, demerphq wrote: On 16 May 2016 at 20:03, Bruce Johnson wrote: On May 16, 2016, at 10:15 AM, André Warnier (tomcat) wrote: join "", map +(0..9,"a".."z","A".."Z")[rand(10+26*2

Re: random token re-used in subsequent requests

2016-05-17 Thread André Warnier
On 17.05.2016 14:11, Vincent Veyron wrote: On Tue, 17 May 2016 10:16:43 +0200 André Warnier wrote: I don't see above any signifiant difference in configuration between the servers, apart from the fact that the "faulty" server runs a 64-bit version of perl. Sorry : slightly

Re: random token re-used in subsequent requests

2016-05-17 Thread André Warnier
On 17.05.2016 08:28, Vincent Veyron wrote: On Mon, 16 May 2016 22:45:14 + "Bruce Johnson" wrote: I don’t think it would be likely for Vincent to ever see this once, let alone have it rise to the issue of a problem if it were strictly about non-randomness of the rand() function. Inde

Re: random token re-used in subsequent requests

2016-05-16 Thread André Warnier
On 16.05.2016 20:03, Bruce Johnson wrote: On May 16, 2016, at 10:15 AM, André Warnier (tomcat) wrote: join "", map +(0..9,"a".."z","A".."Z")[rand(10+26*2)], 1..32 ; looks at first sight to me like quite inefficient and probably likely

Re: $r->requires and register_auth_provider

2015-12-22 Thread André Warnier
Hi. I don't have anything very precise to tell you, but here is what I know : The AAA part has been significantly changed in Apache httpd 2.4, as compared to 2.2. Therefore I suspect - but I am not sure - that some corresponding changes had to be made in mod_perl, to adapt to these changes. One

"SetEnv/SetEnvIf" and mod_perl

2015-10-02 Thread André Warnier
Hi again. Assuming this kind of configuration : SetEnvIf Request_URI \.gif$ gif-image SetHandler modperl PerlResponseHandler MyNiftyModule .. is there any way, in MyNiftyModule, to "get at" this "gif-image" variable ? Such as, would I find it as $ENV{'gif-image'} ? What kind of t

Re: Apache2 filter

2015-10-02 Thread André Warnier
On 02.10.2015 10:19, James Smith wrote: perl -cw sometimes throws errors with mod_perl code - as it isn't running in the Apache environment... I get the same warning testing my output filter handler when running with -cw - but it works well in Apache...! This begs for a follow-up question, w

Re: [Rusonyx #1410025]: Re: Enquiry about mod_perl project state

2015-08-15 Thread André Warnier
Hi. Isn't anyone going to do anything about (kindly) this Russian auto-responder ? Like, unsubscribe it from the list ? Rusonyx Support Team wrote: Randolf Richardson, Вы написали в компанию Русоникс и это письмо является автоматическим подтверждением того, что Ваша заявка поступила в очередь

Re: Apache / mod_perl / Perl under Windows

2015-07-05 Thread André Warnier
Michael Lackhoff wrote: Am 03.07.2015 um 15:55 schrieb André Warnier: Grateful for any insight. No real insight but a working setup for development which runs from USB-stick and on about any system from XP 32bit to Windows 7 64bit (sorry, no experience with Windows server, all my servers run

Apache / mod_perl / Perl under Windows

2015-07-03 Thread André Warnier
Hi. Can someone help clearing my confusion (again) as to what kind of Apache / mod_perl / Perl combination works under Windows (32-bit and 64-bit) ? I thank Steve Hay many times for providing numerous versions of mod_perl for numerous versions of platforms and numerous versions of Active and

Re: Apache 2.4 and AAA

2015-05-30 Thread André Warnier
Kevin A. McGrail wrote: On 5/29/2015 1:52 PM, André Warnier wrote: Kevin A. McGrail wrote: On 5/29/2015 1:20 PM, André Warnier wrote: Over the years, I have created and modified and re-modified my own Apache/mod_perl authentication module, which was originally derived from Apache(2

Re: Apache 2.4 and AAA

2015-05-29 Thread André Warnier
Kevin A. McGrail wrote: On 5/29/2015 1:20 PM, André Warnier wrote: Over the years, I have created and modified and re-modified my own Apache/mod_perl authentication module, which was originally derived from Apache(2?)::AuthCookie (pilfered would be the correct term I guess). It currently runs

Apache 2.4 and AAA

2015-05-29 Thread André Warnier
Hi. Over the years, I have created and modified and re-modified my own Apache/mod_perl authentication module, which was originally derived from Apache(2?)::AuthCookie (pilfered would be the correct term I guess). It currently runs up to Apache 2.2, but I have heard/read in various places that th

Re: mod_perl and apache 2.4

2015-04-30 Thread André Warnier
Hi. I honestly don't know if this will help you, because I have no idea about FreeBSD. But what I can tell you, is that I am running Apache 2.2 and mod_perl 2 succesfully on multiple servers, under various versions of Windows and under various versions of Linux, without any problems whatsoever

Re: Large File Download

2015-03-28 Thread André Warnier
Randolf Richardson wrote: I know that it's possible(and arguably best practice) to use Apache to download large files efficiently and quickly, without passing them through mod_perl. However, the data I need to download from my application is both dynamically generated and sensitive so I cannot ex

Re: Disallow path info

2015-03-25 Thread André Warnier
24, 2015 at 3:44 AM, André Warnier wrote: You know, I am slowly getting the feeling that by dicing and slicing the URLs and fixing up things afterward, you are setting yourself up for some major headeaches later on, when something changes and/or someone needs to figure out what is going on. Umm, no

Re: Disallow path info

2015-03-24 Thread André Warnier
Phillip Hellewell wrote: On Tue, Mar 24, 2015 at 3:44 AM, André Warnier wrote: You know, I am slowly getting the feeling that by dicing and slicing the URLs and fixing up things afterward, you are setting yourself up for some major headeaches later on, when something changes and/or someone

Re: Disallow path info

2015-03-24 Thread André Warnier
Phillip Hellewell wrote: Good news. I got a helpful tip from a Dr James Smith to use a PerlFixupHandler that looks like this: package My::Fixup; use strict; use warnings; use utf8; use Apache2::Const qw(OK NOT_FOUND); sub handler { my $r = shift; return NOT_FOUND if $r->path_info; retu

Re: Are there windows binaries for 5.20?

2015-03-03 Thread André Warnier
found here : http://strawberryperl.com/releases.html section : "5.18.4.1 / 32bit - without USE_64_BIT_INT" Once I corrected that (and re-installed the rest as per below), the error went away. Many, many thanks for the binaries, and sorry for the noise. André André Warnier wro

Re: Are there windows binaries for 5.20?

2015-02-16 Thread André Warnier
Steve Hay wrote: ... Unfortunately you'll need to use VC++ for now because mod_perl doesn't currently support gcc/dmake (which is what both StrawberryPerl and ActivePerl now use). I hope to fix that soon, though... I'll be eternally grateful too, when you get to that point. I am also despera

Re: File Corrupt when download with ModPerl scripts

2015-02-05 Thread André Warnier
Michel, from what you describe below, this sounds very unlikely to be a perl or mod_perl issue. If I have to make a guess, I would say that what you download via perl/mod_perl is just not the same image file as what you think you download. Maybe it is a thumbnail version of the original image

Re: mod_perl installed via yum but not used by application (RedHat 6.5 Apache 2.2.15 mod_perl 2.0.4)

2015-01-15 Thread André Warnier
BOUX Frederik wrote: Hello, I am using OTRS on a RedHat 6.5 with apache2 and mod_perl2. We are using these packages (yum info feedback): Installed Packages Name: httpd Arch: x86_64 Version : 2.2.15 Release : 39.el6 Name: mod_perl Arch: x86_64 Version

Re: undefined

2014-09-23 Thread André Warnier
Bill Moseley wrote: I'm printing like this: my $octets = 'Быстрая коричневая лиса चाँद पर'; $r->log->warn( $octets ); $r->log->warn( Encode::decode_utf8( $octets ) ); print STDERR $octets; But what I get in the logs is this: [Tue Sep 23 09:12:07 2014] [warn] [client 10.5.24.82] \xd0\x91\xd

Re: Shared Dirty memory of Apache parent process

2014-09-16 Thread André Warnier
Hi. This is a bit beside your question below (for which I do not know the answer anyway). But if it is the case - that you have a number of Apache child processes which all need at start a certain initial table of data of 100-200 MB in size - that each of these children is going to modify tha

Re: Shared Dirty memory of Apache parent process

2014-09-16 Thread André Warnier
Nageswara rao Gurram wrote: Hi, I am new to mod perl environment so this may looks naive. Recenlty I observed my apache processes are getting huge.. When I tried to dig this down I found apache parent process (rss memory , mainly shared dirty) itself is increasing with number of requests it

Re: lost directory indexes

2014-09-15 Thread André Warnier
Ruben Safir wrote: On Mon, Sep 15, 2014 at 12:24:13AM -0400, Ruben Safir wrote: Oh yeah -- Server version: Apache/2.2.23 (Unix) Server built: Dec 9 2012 17:26:38 Continuing on this I'm looking at what are the allowed options I added: use Apache2::Access; use Apache2::Const -compile =>

Re: Perl Authorization handler called before authentication handler

2014-09-12 Thread André Warnier
Lathan Bidwell wrote: I have looked all around apache's documentation on how to upgrade from 2.2 to 2.4, but they don't include much about using PerlAddAuthzProvider or PerlAuthenHandler. I have this config section: PerlAddAuthzProvider membersuser Application::User::Members->authorize24

Re: mod_perl and utf8 and CGI->param

2014-09-08 Thread André Warnier
Michael Schout wrote: On 9/2/14, 4:19 PM, Randal L. Schwartz wrote: ## ensure utf8 CGI params: $CGI::PARAM_UTF8 = 1; Sorry to chime in late on this, but part of the problem with CGI.pm and UTF-8 is that PARAM_UTF8 gets clobbered by a cleanup handler that CGI.pm itself registers if its run

Re: mod_perl and utf8 and CGI->param

2014-09-03 Thread André Warnier
Hi Randal. Randal L. Schwartz wrote: Getting really frustrated with mod_perl2's apparent inability to probably read UTF8 input. Here's my mod_perl2 setup: Apache 2.2.[something] mod_perl 2.0.7 (or nearly that) ModPerl::Registry Perl "script" with CGI.pm Very early in my app: ## ens

Re: Authorization without Authentication?

2014-08-03 Thread André Warnier
Mark jensen wrote: Thanks I guess your answer will work for me if I have only static IPs but what I have suggested is an example, my DB or DNS zone is changing dynamically, can mod_perl deal with them as a DB? sub Handler { my $r = shift; my $c = $r->connection; my $user = $c->remot

Re: Authorization without Authentication?

2014-08-03 Thread André Warnier
Mark jensen wrote: I have seen this link: http://perl.apache.org/docs/2.0/user/handlers/http.html#PerlAuthzHandler and as it said: This phase requires a successful authentication from the previous phase, because a username is needed in order to decide whether a user is authorized to access the

Re: bug in trunk in Apache::Reload test

2014-06-26 Thread André Warnier
There is also something to be said for writing clear and obvious code, even if it does cost a couple of CPU cycles of which there are about 2.5 billion available every second. I prefer this version : my $args = $r->args; if (defined($args) && ($args eq 'last')) { ... } unless $args is used exc

Re: Problem with Apache2::AuthCookie and Apache 2.4: "failed to resolve handler"

2014-06-25 Thread André Warnier
Brian Candler wrote: OK I have it. The Debian-supplied version of Apache2::AuthCookie *does* have the patches from the httpd24 branch of authcookie, and the documentation for how to use it is in /usr/share/doc/libapache2-authcookie-perl/README.apache-2.4 Very useful information, thanks for sh

Re: what is "world domination series"?

2014-06-23 Thread André Warnier
I may be thick, or not in the loop, but I didn't get this. Care to provide a hint ? Mark Hedges wrote: *lol* ... `force install App::Ack` ... silly people :-) From: Mark Hedges Sent: Sunday, June 22, 2014 11:10 PM To: modperl@perl.apache.org Cc: Mark Hedges Subject: what is "world domination

Re: Something wrong with CPAN ?

2014-06-09 Thread André Warnier
I Close wrote: On 09/06/14 12:23, André Warnier wrote: Hi guys. Is it only me, or does the search box in www.cpan.org not work anymore ? 503 Service Unavailable No server is available to handle this request. (been like that for a couple of days now) I have noticed its seemingly been

Something wrong with CPAN ?

2014-06-09 Thread André Warnier
Hi guys. Is it only me, or does the search box in www.cpan.org not work anymore ? 503 Service Unavailable No server is available to handle this request. (been like that for a couple of days now) If it is not me alone, and if someone here knows where to send a message about this, could you adv

Re: API Docs

2014-05-17 Thread André Warnier
Worik Stanton wrote: On 16/05/14 21:09, André Warnier wrote: Maybe you should start here : https://perl.apache.org/docs/2.0/user/handlers/intro.html#What_are_Handlers_ Thank you. That is very useful Welcome. One thing which you cannot complain about apparently, is the number of answers

Re: API Docs

2014-05-16 Thread André Warnier
Worik Stanton wrote: I am still trying to fathom the API. I have struck a snag with the documentation. https://perl.apache.org/docs/2.0/api/Apache2/Connection.html#Synopsis says use Apache2::Connection (); use Apache2::RequestRec (); my $c = $r->connection; What is $r? I am miss

Re: Apache 2.2 and Authorization Providers under mod_perl

2014-04-01 Thread André Warnier
Skylos wrote: Trying to migrate an application to mod_perl under apache 2.2 but my custom auth handlers are blowing up on failure to understand '$r->requires' method. The best I can make of it is that apache 2.2 revamped the auth system requiring the definition of providers (like 'group' allowin

Re: PATCH: add -DAPACHE24 support to Apache::Test - necessary for Auth with Apache 2.4

2014-03-17 Thread André Warnier
Not an answer to your question, but many thanks for that module, for keeping it up-to-date, and for pointing out the differences in Apache 2.4. I used Apache::Cookie as a base to create my own module which does just about every authentication under the sun (for a particular back-end), and it was

Re: Initial setup problems with mod_perl2 - unable to locate modules

2014-02-16 Thread André Warnier
Da Rock wrote: ... > SetHandler modperl PerlResponseHandler Mod_home::Mod These 2 lines above should be enough. Again as I thought. But if I may ask (for later configuration), how is access controlled? Using auth or access in the perl module rather than server acl's?

Re: Initial setup problems with mod_perl2 - unable to locate modules

2014-02-14 Thread André Warnier
André Warnier wrote: Hi. Da Rock wrote: I know this may seem straight forward and a RTFM response may be in order, but I have been trying to crack this for some days now (following attempts on and off, too, mind) and nothing I can google seems to point to an accurate answer on what the

Re: Initial setup problems with mod_perl2 - unable to locate modules

2014-02-14 Thread André Warnier
Hi. Da Rock wrote: I know this may seem straight forward and a RTFM response may be in order, but I have been trying to crack this for some days now (following attempts on and off, too, mind) and nothing I can google seems to point to an accurate answer on what the problem is here. I'm runni

Re: Problem with Apache2::Connection::remote_ip

2014-02-09 Thread André Warnier
Steve Baldwin wrote: Hi, Not sure what I'm doing wrong here. I'm just trying to get the client ip address in a PerlResponseHandler as follows: : use Apache2::Connection; : my $remote_ip = $r->connection->remote_ip(); : I get a runtime error as follows: [Sun Feb 09 16:44:22.499681 2014] [p

Re: New Windows mod_perl binaries available for Perl 5.18.1

2013-10-27 Thread André Warnier
integers in Apache Lounge's Win32 build. Thank you very much. Really helps. André Warnier Mira Consulting GmbH

Re: Web Server Architecture

2013-09-05 Thread André Warnier
Joseph D Carroll Jr wrote: I am new to httpd (or any web server for that matter) and I am trying to play around with some things using Amazon Web Services. So as much as I may be looking for an answer, I am more interested in where I can figure all of this out. I am setting up a simple web site

Re: [URGENT] Do not post below post on Internet

2013-08-20 Thread André Warnier
Hi. You do realise that the more attention you draw to this, the more likely someone is to really go search through the dozens of archived versions of these messages, to find what you are so worried about ? Do as someone wrote earlier : change that information on your servers, now. There is n

Re: Detection "connection reset by peer" in mod_perl before send a response

2013-08-10 Thread André Warnier
Lucas wrote: Dear all. I need to detect that user pressed escape, apache receives it like "connection reset by peer" (I saw it with truss, freebsd strace), before my script will send a response to client. I can explain: my script works some time (about 2-3 sec), it gathers some data. Within

Re: mod_perl and Transfer-Encoding: chunked

2013-07-04 Thread André Warnier
Bill Moseley wrote: André, thanks for the response: On Thu, Jul 4, 2013 at 4:06 AM, André Warnier wrote: Bill Moseley wrote: First, if $r->read reads unchunked data then why is there a Transfer-Encoding header saying that the content is chunked? Shouldn't that header be

Re: mod_perl and Transfer-Encoding: chunked

2013-07-04 Thread André Warnier
Not disregarding the other answers to your questions, but I believe that maybe one aspect has been neglected here. Bill Moseley wrote: For requests that are chunked (Transfer-Encoding: chunked and no Content-Length header) calling $r->read returns *unchunked* data from the socket. That's indee

Problem installing SOAP::SOM, in dependency SOAP::Lite

2013-06-01 Thread André Warnier
Hi. I don't really know if SOAP::Lite is supported or not ;-), but I saw PHRED lurking around here, so I'll try my luck. While trying to find my way around to interface with a Sharepoint web service, I encounter the following issue (visible at end if you want to skip to the flesh) : Platform

Re: [OT] Apache::DBI

2013-05-31 Thread André Warnier
torical nit-picking, you probably don't use the ones that don't work :) Also, the significant question seems to be whether Apache::DBI is supported or not. From Mr. Zheng's point-of-view (in this case, the one that matters) the number might be much higher. -Jim On Fri, 31

Re: [OT] Apache::DBI

2013-05-31 Thread André Warnier
on. It's a slow process, but one has to patiently overcome years of Java and MS propaganda, and that doesn't happen in a day. Also, the significant question seems to be whether Apache::DBI is supported or not. From Mr. Zheng's point-of-view (in this case, the one that matter

Re: [OT] Apache::DBI

2013-05-31 Thread André Warnier
Just butting in, apologies. It may not have been Jim's intention below, but I get the impression that his comments on CPAN are a bit harsh. It is true that a number of modules are apparently no longer supported. I have used many modules over the years, and sometimes have had problems with so

Re: Perl module not reading/setting PerlSetEnv command on apache start

2013-05-14 Thread André Warnier
jitendra.s...@accenture.com wrote: I tried with /AMF path also with folder owner as "nobody" then also while starting apache its saying CacheDirectoryStore not exits.I tried following steps: (1) sudo su (that is for root user login) (2) Created folder AMF with owner as nobody. (3) Set PerlSetEn

Re: Perl module not reading/setting PerlSetEnv command on apache start

2013-05-13 Thread André Warnier
ixing this issue. Do I need to change the User to ROOT in conf file then start apache?? Met vriendelijke groet / With kind regards, Jitendra Soni KPN - Application Development Accenture | Bangalore INDIA Mailto : jitendra.s...@accenture.com Mobile : (+91) 99 860 298 97 -Original Message-

Re: Perl module not reading/setting PerlSetEnv command on apache start

2013-05-13 Thread André Warnier
these systems! # User nobody Group nobody # Met vriendelijke groet / With kind regards, Jitendra Soni KPN - Application Development Accenture | Bangalore INDIA Mailto : jitendra.s...@accenture.com Mobile : (+91) 99 860 298 97 -Original Message- From: André Warnier [mailto:a...@ice-s

Re: Perl module not reading/setting PerlSetEnv command on apache start

2013-05-13 Thread André Warnier
A Mailto : jitendra.s...@accenture.com Mobile : (+91) 99 860 298 97 -Original Message- From: André Warnier [mailto:a...@ice-sa.com] Sent: Monday, May 13, 2013 5:59 PM To: mod_perl list Subject: Re: Perl module not reading/setting PerlSetEnv command on apache start Hi. And what makes you th

Re: Perl module not reading/setting PerlSetEnv command on apache start

2013-05-13 Thread André Warnier
Hi. And what makes you think that this is a mod_perl problem ? There is a fairly explicit error message (and support address) below, which tends to point to a problem in the add-on module or the configuration. jitendra.s...@accenture.com wrote: Gentlemen, I need urgent help from you in fix

problems with CPAN

2013-05-07 Thread André Warnier
Hi. I understand that this is not properly speaking a mod_perl issue, more like a perl/cpan issue under Windows. But before I go subscribe to a couple more lists, maybe someone on this list has a clue and can help ? I recently update perl on my venerable Windows XP laptop, from ActivePerl 5.8

Re: Mod_perl installation on Win 2008

2013-05-06 Thread André Warnier
ext-ma wrote: Hi. I am a consultant for a high-tech company and I have installed Bugzilla for their internal use. For various reasons the Apache server had to be installed on a Win2008 server. And for other reasons the server is Apache 2.0. I thought you said that this is a hi-tech company..

Apache option MultiViews interfering with mod_perl

2013-04-28 Thread André Warnier
Hi. It is quite certain that the basic reason for my troubles is my own lack of expertise, but I suppose that others may stumble into the same issue at some point, and this may help them avoid the loss of time involved. Basically, I had an Apache (2.2) configuration section as follows : P

Re: New Windows mod_perl binaries available

2013-04-28 Thread André Warnier
Steve Hay wrote: No problem! I've just uploaded builds for ActivePerl 1405 (5.14.4) and StrawberryPerl 5.14.4.1, which you can find in the same location as before: http://people.apache.org/~stevehay/ Thanks. You had your first customer for all 4 of them 2 minutes ago. Really grateful. Can some

Re: New Windows mod_perl binaries available

2013-04-28 Thread André Warnier
Randolf Richardson wrote: For those who are interested, I've now uploaded binary builds of mod_perl-2.0.8 and libapreq2-2.13 components compatible with Apache Lounge 2.2.24 Build 25 February 2013 (win32) and each of: * ActivePerl 5.16.3 Build 1603 (x86) * Strawberry Perl 5.16.3 Build 1 (32bit)

ActivePerl 5.16 & CPAN

2013-04-05 Thread André Warnier
Hi. I know this is a mod_perl list, not a perl list per se, but maybe someone here knows the issue.. On my Windows XP laptop, I have just de-installed my old Perl 5.10 and installed ActivePerl 5.16 (which caused some issues with mod_perl now resolved, see previous post today). But I am havin

Re: Windows XP, Apache, perl 5.16, mod_perl

2013-04-05 Thread André Warnier
Michiel Beijen wrote: Hi Andre, On Fri, April 5, 2013 15:31, André Warnier wrote: Could you recommend one "integrated" solution for this, in terms of Apache httpd 2.2.x, and a recent perl version ? Like, something which works without having to spend a week resolving dependencies and incompati

Windows XP, Apache, perl 5.16, mod_perl

2013-04-05 Thread André Warnier
Hi guys. We generally work on Linux Debian systems, and install Apache httpd, perl and mod_perl from the package manager, and it works great. However, for some cases - like my Windows XP development laptop - I would like a local copy of this all, to develop and test new software. (Also because

Re: [OT] AW: Unsuccessful stat on filename containing newline in RegistryCooker.pm

2013-03-01 Thread André Warnier
demerphq wrote: On 28 February 2013 21:12, André Warnier wrote: I am ranting, and I know it. But the basic fact is that " ", in 99% of programming languages I doubt it, considering all the major languages I know of use a "," to separate arguments. And if you are in a

Re: [OT] AW: Unsuccessful stat on filename containing newline in RegistryCooker.pm

2013-02-28 Thread André Warnier
Randolf Richardson wrote: alexander.elg...@external.t-systems.com wrote: ... I am pretty shure, I tested the capability of filenames on a Linux (ext2) or Solaris (ufs) filesystem, a long time ago The outcome was, that you can use 254 different characters, except the '\0' and the '/'. Apple's

Re: [OT] AW: Unsuccessful stat on filename containing newline in RegistryCooker.pm

2013-02-28 Thread André Warnier
David Booth wrote: On 02/28/2013 09:32 AM, Torsten Förtsch wrote: On 02/28/2013 03:14 PM, demerphq wrote: A special place in hell is reserved for programmers that write code that assumes that spaces and other unprintables are illegal in a filename. Yes, right next door to another place in hel

Re: [OT] AW: Unsuccessful stat on filename containing newline in RegistryCooker.pm

2013-02-28 Thread André Warnier
demerphq wrote: On 28 February 2013 13:29, André Warnier wrote: alexander.elg...@external.t-systems.com wrote: ... I am pretty shure, I tested the capability of filenames on a Linux (ext2) or Solaris (ufs) filesystem, a long time ago The outcome was, that you can use 254 different characters

Re: [OT] AW: Unsuccessful stat on filename containing newline in RegistryCooker.pm

2013-02-28 Thread André Warnier
alexander.elg...@external.t-systems.com wrote: ... I am pretty shure, I tested the capability of filenames on a Linux (ext2) or Solaris (ufs) filesystem, a long time ago The outcome was, that you can use 254 different characters, except the '\0' and the '/'. But I agree, it is an annoyance it

Re: Question on how execution order of Mod_Persl

2013-02-06 Thread André Warnier
Timothy Gallagher wrote: Hello all, I have a question for you that I am needed some help/guidance on. I am not sure if this is a question for Apache, perl or mod_perl, I believe this is the correct place to ask. I am building a reverse proxy server that authenticates a user via the client SS

Re: alias command in modperl environment

2012-12-19 Thread André Warnier
Feng He wrote: Hello, ServerAdmin x...@yyy.com ServerName example.com PerlModule Apache::DBI PerlPostConfigRequire /path/to/startup.pl SetHandler modperl PerlResponseHandler Handler1 SetHandler mod

Re: setHandler question

2012-12-17 Thread André Warnier
Rafael Caceres wrote: ... What you want works for me when reverse proxying to Tomcat or another Apache by adding a require valid-user inside the LocationMatch Thanks for your interest. That would indeed work if my authentication sub returned an "auth required" when the request is not authen

Re: setHandler question

2012-12-16 Thread André Warnier
André Warnier wrote: Torsten Förtsch wrote: On 12/15/2012 01:30 PM, André Warnier wrote: And somehow the $r->add_config() looks a bit like a roundabout way of achieving what I want. If I can, kind of, "stuff" an additional SetHandler configuration directive into the Apache conf

Apache2 constants syntax question

2012-12-16 Thread André Warnier
Hi. I suppose that this is a bit academical, but I'm wondering anyway. In Apache2::Const, there are a number of constants member of the ":common" import group, which are (presumably) the same as their near equivalent in the ":http" import group. For example : Apache2::Const::FORBIDDEN ~ Apache

Re: setHandler question

2012-12-15 Thread André Warnier
Torsten Förtsch wrote: On 12/15/2012 01:30 PM, André Warnier wrote: And somehow the $r->add_config() looks a bit like a roundabout way of achieving what I want. If I can, kind of, "stuff" an additional SetHandler configuration directive into the Apache configuration for my req

Re: setHandler question

2012-12-15 Thread André Warnier
Torsten Förtsch wrote: On 12/14/2012 02:52 PM, André Warnier wrote: Or am I totally off-track here ? I think yes, you are confused by the similarity of "finfo" and "OR_FILEINFO". Yes, I was. Thanks for setting me right. The finfo part of $r is simply a data structure

Re: setHandler question

2012-12-14 Thread André Warnier
Ryan Gies wrote: On 12/14/2012 8:52 AM, André Warnier wrote: I suppose that in the end I will want to do something like this : my $finfo = $r->finfo(); # do something to $finfo to set the flag $r->finfo($finfo); $r->handler('modperl'); $r->set_handle

setHandler question

2012-12-14 Thread André Warnier
Hi. Quite a while ago (2008), this discussion on the list : http://marc.info/?l=apache-modperl&m=122399752819709&w=2 was about how to, within a PerlAuthenHandler, override the ResponseHandler which would normally kick in later in the cycle, and force it to be mod_perl and a specific (other) P

Re: Soulution maybe? for Re: Connection aborted was ModPerl::Util::exit: (120000) at Carp.pm line 590

2012-11-29 Thread André Warnier
Dave Morgan wrote: Hi All, Short summary, original problem ModPerl::Util::exit: (12) exit was called at /usr/share/perl5/CGI/Carp.pm line 590 after hacking out Carp "Software caused connection abort." at 3 different places in our code The code in question is essentially p

Re: Charset in response

2012-11-29 Thread André Warnier
André Warnier wrote: André Warnier wrote: Torsten Förtsch wrote: On 11/29/2012 10:37 AM, André Warnier wrote: When I say that it doesn't work, I mean in fact : - the "Content-Type" response header sent by the server is properly set according to what I do above (as verified in a

Re: Charset in response

2012-11-29 Thread André Warnier
André Warnier wrote: Torsten Förtsch wrote: On 11/29/2012 10:37 AM, André Warnier wrote: When I say that it doesn't work, I mean in fact : - the "Content-Type" response header sent by the server is properly set according to what I do above (as verified in a browser plugin)

Re: Charset in response

2012-11-29 Thread André Warnier
Torsten Förtsch wrote: On 11/29/2012 10:37 AM, André Warnier wrote: When I say that it doesn't work, I mean in fact : - the "Content-Type" response header sent by the server is properly set according to what I do above (as verified in a browser plugin) - but if what I print con

Re: Charset in response

2012-11-29 Thread André Warnier
Addendum at end. André Warnier wrote: Hi. I have a problem with a PerlResponseHandler, regarding the character set used in the response to a request. Basically, the question is : how to I set the character set properly for the "handle" used in $r->print("string")

Charset in response

2012-11-29 Thread André Warnier
Hi. I have a problem with a PerlResponseHandler, regarding the character set used in the response to a request. Basically, the question is : how to I set the character set properly for the "handle" used in $r->print("string") ? (where string can be "äéèöü" for example) Neither of the followin

Re: get the incoming TCP protocol type

2012-11-26 Thread André Warnier
Torsten Förtsch wrote: On 11/26/2012 09:05 AM, André Warnier wrote: http://httpd.apache.org/docs/2.2/mod/mod_rewrite.html#rewritecond there is apparently a "server variable" HTTPS which can be tested in a RewriteCond, and which looks just like what I need : HTTPS Will contain th

Re: get the incoming TCP protocol type

2012-11-26 Thread André Warnier
Vincent Veyron wrote: Le samedi 24 novembre 2012 à 16:58 +0100, André Warnier a écrit : Is there somewhere a "is_secure()" or something which provides that ? Or can I rely on the presence/absence of some request header ? Apache's mod_rewrite has the HTTPS RewriteCond directi

Re: get the incoming TCP protocol type

2012-11-24 Thread André Warnier
Torsten Förtsch wrote: On 11/24/2012 08:11 PM, Fred Moyer wrote: On Sat, Nov 24, 2012 at 7:58 AM, André Warnier wrote: Inside a mod_perl2 request handler, how can I find out if the current request was received via HTTP or HTTPS ? Torsten is the author of this module, so he can explain it in

get the incoming TCP protocol type

2012-11-24 Thread André Warnier
Hi. Inside a mod_perl2 request handler, how can I find out if the current request was received via HTTP or HTTPS ? I mean : The client (browser e.g.) gets a URL "http://host.x.y/path1/path2..";, and - translates host.x.y to an IP - makes a connection to that IP (and port) - sends a request lik

use "global" data in handler (was : custom proxy setup with mod_perl)

2012-11-24 Thread André Warnier
Hi. This refers indirectly to the thread "custom proxy setup with mod_perl", but is more general, I believe. For the PerlFixupHandler which was discussed before, I need to compare the current request URL to a predefined static list of URLs, to decide how exactly to proxy this call. At the mom

Re: custom proxy setup with mod_perl

2012-11-23 Thread André Warnier
Fred Moyer wrote: On Fri, Nov 23, 2012 at 2:18 PM, André Warnier wrote: Fred Moyer wrote: You might want to take a look at a mod_perl based proxy module I wrote - https://metacpan.org/module/Apache2::Proxy It was used in conjunction with Perlbal and a couple other tricks, but was pretty

  1   2   3   4   5   >