Re: Raku

2021-12-22 Thread tomcat/perl
/docs/2.0/index.html) On Wed, Dec 22, 2021 at 8:45 AM André Warnier (tomcat/perl) wrote: On 22.12.2021 13:19, Wes Peng wrote: Raku has its own WSGI httpserver? Yes, as there are several similar things for Apache/perl (such as Plack/PSGI). But these frameworks only do *partially* what

Re: Raku

2021-12-22 Thread tomcat/perl
On 22.12.2021 13:19, Wes Peng wrote: Raku has its own WSGI httpserver? Yes, as there are several similar things for Apache/perl (such as Plack/PSGI). But these frameworks only do *partially* what mod_perl allows one to do. An essential part of mod_perl (and something for which I believe

Re: [RELEASE CANDIDATE] mod_perl-2.0.12 RC2

2021-12-22 Thread tomcat/perl
Hi. "> I was thinking this project has died." I would sincerely hope not. At least for my company, mod_perl is still a vital and effective piece of our software development and infrastructure. Many thanks to Steve Hay (and many others) for keeping perl and mod_perl alive and well. Judging by

Re: [DISCUSS] The future of mod_perl

2021-03-25 Thread tomcat/perl
Hi. I am a long-term (30+) user of Apache/mod_perl (and perl), but at the application level, not at the committer or PMC level. May I therefor respectfully contribute an "outsider's" point of view ? I believe that mod_perl (like perl itself) suffers from the fact that it is just "too good",

Re: New Windows mod_perl2/libapreq2 build available

2021-03-09 Thread tomcat/perl
Many thanks. Nowadays, we tend to deal increasingly with Linux servers rather than Win32/64, but it is nice anyway that someone cares for this, as we still have some customers with legacy Win servers that they want to keep and update from time to time. (And it is also nice for our

Re: Moving ExecCGI to mod_perl - performance and custom 'modules' [EXT]

2021-02-12 Thread tomcat/perl
at 09:52:16AM +0100, André Warnier (tomcat/perl) wrote: Isn't this discussion about connection pools and firewalls etc getting a bit far from the initial subject of the thread ? Perhaps. But this has become a pretty low volume mailing list. This "thread" has moved me to spend hou

Re: Moving ExecCGI to mod_perl - performance and custom 'modules' [EXT]

2021-02-11 Thread tomcat/perl
Isn't this discussion about connection pools and firewalls etc getting a bit far from the initial subject of the thread ? On 09.02.2021 23:03, Mithun Bhattacharya wrote: I would consider mine a small setup on an internal network and I have used both Sybase and SQL Server. In our case the DBA's

Re: Moving ExecCGI to mod_perl - performance and custom'modules'[EXT]

2021-02-08 Thread tomcat/perl
On 08.02.2021 10:09, Steven Haigh wrote: On Sun, Feb 7, 2021 at 15:17, Chris wrote: Just remember to always write clean code that resets variables after doing tasks. I'm a bit curious about this - whilst I'm still testing all this on a staging environment, how can I tell if things can leak

Re: Confused about two development utils [EXT]

2020-12-25 Thread tomcat/perl
ers need a lot (and I mean a lot) more memory than the mod_perl servers to serve the same level of content (just in case memory blows up with FCGI backends) -Original Message- From: James Smith mailto:j...@sanger.ac.uk>> Sent: 23 December

Re: Confused about two development utils

2020-12-23 Thread tomcat/perl
On 22.12.2020 14:20, Matthias Peng wrote: Can I guess mod_perl is the upgraded version of apreq? Thanks Andre. Not really. They are really 2 different things. The essence of mod_perl, is to embed a perl interpreter in Apache httpd. This costs memory, and all the more since many perl modules

Re: Confused about two development utils

2020-12-22 Thread tomcat/perl
On 22.12.2020 06:49, Matthias Peng wrote: Hello I am developing a simple mp2 application. I looked for the installation for mp2 utils, and found this two: libapache2-mod-perl2 libapache2-mod-apreq2 what're their relations? Should I install both, or only the first one? Hi. They are

Re: suggestions for perl as web development language [EXT]

2020-08-05 Thread tomcat/perl
On 04.08.2020 22:48, Mark Blackman wrote: [...] the web server handles all the complicated host or path rewrites and access control and the Perl app focuses on responding to the, now-sanitised, fully normalized, HTTP requests. I'll agree to that, up to a point. If you just want to write web

Re: suggestions for perl as web development language [EXT]

2020-08-04 Thread tomcat/perl
On 04.08.2020 11:31, paul trader wrote: On Tue, 4 Aug 2020 at 07:36, James Smith opined: JS:Others will disagree but the best way I still believe is using mod_perl JS:- but only if you use it's full power - and you probably need a special JS:sort of mind set to use - but that can be said for

problem with SLES 12, Apache 2,4, mod_perl 2.0.8

2020-06-03 Thread tomcat/perl
Hi. A few days ago, I posted an issue that we experienced with apreq2 on this same platform, which we could in the end resolve but via a somewhat unconventional and complicated route. Now we find another issue with mod_perl, and we do not know how to tackle it. The problem seems to be that

Re: Can't locate object method "new" via package "CGI::Cookie"

2020-06-01 Thread tomcat/perl
On 31.05.2020 20:49, Vincent Veyron wrote: Hi List, I have two servers using mod_perl, both having the same modules installed and enabled; server1 got a fresh install of Debian Buster, while server2 was upgraded to Buster from Stretch. This code : my $cookie = CGI::Cookie->new(-name

problem with Apache apreq2 on SLES 12 SP1

2020-05-30 Thread tomcat/perl
Hi. Since the following is quite long, here is the question : does the following ring any bell to anyone here ? Thanks in advance. André Description: We get the following issue on a customer system on which we install an application. The system was initially installed by the customer's own

Re: Apache2:AuthCookie With httpd 2.4

2020-05-14 Thread tomcat/perl
Hi. Just some tips, to simplify the issue, below in the text : On 14.05.2020 06:09, Scott Alexander wrote: Hi, Thanks for your answer, but for me this is confusing. I have Apache2_4::AuthCookie is up to date. (3.30) Apache2::AuthCookie is up to date. (3.30) <--- you do not need this with

Re: Apache 2.4, AAA, Shibboleth

2020-03-06 Thread tomcat/perl
cess https://www.signet.id/ On Fri, Mar 06, 2020 at 04:26:06PM +0100, André Warnier (tomcat/perl) wrote: Hi experts. In our Apache 2.4(+mod_perl) setups, we use the following kind of thing : ... PerlAddAuthzProvider UMA-user AUTH::UMA2->authz_user ... AuthName ALUtop

Re: Apache 2.4, AAA, Shibboleth

2020-03-06 Thread tomcat/perl
both cases. One more question : why the top-level ? On 07.03.2020 00:59, Paul B. Henson wrote: On Sat, Mar 07, 2020 at 12:22:35AM +0100, André Warnier (tomcat/perl) wrote: Does anyone have an idea how I could do the equivalent of a "pop the 'require shibboleth' but just for this request

Re: Apache 2.4, AAA, Shibboleth

2020-03-06 Thread tomcat/perl
t's there, and just for the current request. Russell Sent from my iPhone On Mar 6, 2020, at 08:26, André Warnier (tomcat/perl) wrote: Hi experts. In our Apache 2.4(+mod_perl) setups, we use the following kind of thing : ... PerlAddAuthzProvider UMA-user AUTH::UMA2-&g

Apache 2.4, AAA, Shibboleth

2020-03-06 Thread tomcat/perl
Hi experts. In our Apache 2.4(+mod_perl) setups, we use the following kind of thing : ... PerlAddAuthzProvider UMA-user AUTH::UMA2->authz_user ... AuthName ALUtop AuthType shibboleth PerlSetVar UMA_AuthType "SAML2" ShibRequestSetting requireSession 1

Re: Building mod_perl2.pm

2020-02-13 Thread tomcat/perl
On 12.02.2020 23:01, Ruben Safir wrote: On Tue, Feb 11, 2020 at 07:04:56PM -0600, Steven Lembark wrote: Hello, I am trying to use Apache::DBI module. I got it installed on the SUSE Linux 11SP4 on my dev box. It has a dependency of mod_perl2. But when I try to install mod_perl2, I get Please

Re: POST large amount of data causes segmentation fault

2020-02-10 Thread tomcat/perl
On 09.02.2020 16:26, Vincent Veyron wrote: On Sun, 9 Feb 2020 10:57:04 + Scott Alexander wrote: I meant I'm posting data from a form, javascript is collecting a series of numbers from a as a string. Not really clear what happens here? I guess Javascript writes the content of the text

Re: mod_perl, compilation issues, cont

2020-02-03 Thread tomcat/perl
C:\Users\aw\AppData\Local\Temp TMP=C:\Users\aw\AppData\Local\Temp USERDNSDOMAIN=MIRA-GLOMAS.INTERN USERDOMAIN=MIRA-GLOMAS USERDOMAIN_ROAMINGPROFILE=MIRA-GLOMAS USERNAME=aw USERPROFILE=C:\Users\aw VBOX_MSI_INSTALL_PATH=C:\Program Files\Oracle\VirtualBox\ windir=C:\WINDOWS C:\strawberry\perl\site>

Re: mod_perl, compilation issues, cont

2020-02-03 Thread tomcat/perl
/ under Permission Types; the specific right is ‘List Folder Contents’ This would account for both dl_findfile working and the ‘Can’t Load file’ error because the first utilizes the listing rights and the second needs to actually read the file. On Jan 16, 2020, at 1:34 AM, André Warnier (tomcat

mod_perl, compilation issues, cont

2020-01-16 Thread tomcat/perl
Can anyone tell me what the error below really means ? (and if possible, give me a clue as to what may be happening ?) To get possibly more details, I re-ran the compile command after setting PERL_DL_DEBUG in the environment (just something I found in Dynaloader.pm). It does give some more

mod_perl, compilation issues

2020-01-14 Thread tomcat/perl
Hi. OS : Windows 10 Apache httpd 2.4.41 perl (Strawberry) : perl 5, version 26, subversion 2 (v5.26.2) built for MSWin32-x64-multi-thread mod_perl : from Steve Hay's mod_perl-2.0.10-strawberryperl-5.26.1.1-64bit.zip, as per Apache log : Apache/2.4.41 (Win64) mod_perl/2.0.10 Perl/v5.26.2

Re: installing mod_perl on Windows 10

2020-01-14 Thread tomcat/perl
Hi. One more time. I am trying to install Apache 2.4 (64-bit, ApacheLounge) + perl (Strawberry, 5.26.2, 64-bit) + mod_perl 2 (all versions shown below in cpanm output), on a (German) Windows 10 laptop. (*) The work directory below is leftover from a previous command "cpanm mod_perl2". Apache

Re: installing mod_perl on Windows 10

2020-01-08 Thread tomcat/perl
On 08.01.2020 17:19, Edward J. Sabol wrote: On Jan 8, 2020, at 10:17 AM, André Warnier (tomcat/perl) wrote: Please provide a full path to 'apxs' executable (press Enter if you don't have it installed): Configure mod_perl with C:\Apache24? [y] y It seems to me you didn’t provide the *full

installing mod_perl on Windows 10

2020-01-08 Thread tomcat/perl
Hi. After (very) long and faithful service, I had to replace my old Windows XP development laptop by a new one, which of course came with Windows 10. And I am having problems installing Apache 2.4 + Strawberry perl + mod_perl. Apache 2.4 is from ApacheLounge

Re: decrypt the posted content

2019-11-20 Thread tomcat/perl
On 20.11.2019 10:26, Tillman Peng wrote: hello My client post the data body which is encrypted with public-key. the private key is deployed in web server,powered by mp2. How can I correctly decrypt the data with private key from within modperl handler? Hi. Do you have a separate

Re: Output filters, data encoding

2019-11-14 Thread tomcat/perl
On 14.11.2019 01:09, Hua, Yong wrote: Hi on 2019/11/14 2:12, André Warnier (tomcat/perl) wrote: I'm writing a new PerlOutputFilter, stream version. Can you give a more general introduction for what is "stream version"? Thank you. You shoud read the pages which I referred to

Re: Output filters, data encoding

2019-11-13 Thread tomcat/perl
On 13.11.2019 19:37, Damyan Ivanov wrote: -=| André Warnier (tomcat/perl), 13.11.2019 19:12:10 +0100 |=- while (my $sz = $f->read(my $buffer, BUFF_LEN)) { .. and then I need to pass this data to another module for processing (Template::Toolkit). To make a long story short, Templ

Re: Output filters, data encoding

2019-11-13 Thread tomcat/perl
On 13.11.2019 19:53, p...@cpan.org wrote: On Wednesday 13 November 2019 19:52:25 André Warnier (tomcat/perl) wrote: On 13.11.2019 19:17, p...@cpan.org wrote: On Wednesday 13 November 2019 19:12:10 André Warnier (tomcat/perl) wrote: My question is : can I - and how -, set the filehandle

Re: Output filters, data encoding

2019-11-13 Thread tomcat/perl
On 13.11.2019 19:17, p...@cpan.org wrote: On Wednesday 13 November 2019 19:12:10 André Warnier (tomcat/perl) wrote: My question is : can I - and how -, set the filehandle that corresponds to the $f->read(), to a UTF-8 layer ? I have tried line 155: binmode($f,'encoding:(UTF-8)'); Hi An

Output filters, data encoding

2019-11-13 Thread tomcat/perl
Hi. I'm writing a new PerlOutputFilter, stream version. I have written several working ones before, so I know the general scheme. But in this latest filter, I have a problem with the data encoding, which I did not encounter previously. I did not find an answer in the on-line mod_perl

Re: [ANNOUNCE] mod_perl-2.0.11

2019-10-16 Thread tomcat
On 16.10.2019 05:57, Randolf Richardson wrote: Before upgrading from Apache HTTPd v2.2 to v2.4, I highly recommend refreshing your familiarity with the Order, Allow, and Require directives. Also, if you're doing any authentication customization, you'll want to take extra care with

Re:[OT] [RELEASE CANDIDATE] mod_perl-2.0.11 RC2

2019-09-26 Thread tomcat
Guys, Not being able myself to contribute really to this process, I did not comment on the previous emails here. But as a grateful user of mod_perl for many years, I just want to express my immense gratitude to Steve and all other people who contribute to keep this project and product alive

Re: How to get “my” VHOST in code executed by PerPostConfigRequire?

2019-08-07 Thread tomcat
Hi. First, my knowledge of these things is more of the "practical, as mod_perl user" level, than based on the code. And I'm more than willing to be corrected by a real code specialist. And forgive me if I am explaining things which you already know. As I understand your request (and the first

Re: help for DNS queries

2019-08-06 Thread tomcat
On 06.08.2019 03:32, Paulina wrote: On Mon, Aug 5, 2019, at 06:50, Paulina wrote: I have been using a cloud host, it seems I have a unnormal DNS resolver entry: And what exactly is unnormal in: nameserver 127.0.0.53 options edns0 ??? Sorry my mistake. After checking the documents

Re: [RELEASE CANDIDATE] Apache-Test-1.41 RC1

2019-07-04 Thread tomcat
Thank you. And these thanks extended to anyone contributing to keep Apache/mod_perl alive and well. On 03.07.2019 14:07, Steve Hay wrote: On Wed, 3 Jul 2019 at 08:45, Steve Hay wrote: Please download, test, and report back on this Apache-Test 1.41 release candidate.

Re: Apache 2.4 Authentication/Authorization

2019-05-16 Thread tomcat
15:42, André Warnier (tomcat) wrote: Hi. I am trying to figure out what Apache2::Const return codes /can/ be returned by a mod_perl /authentication/ method under Apache 2.4+, and what consequences each of these return codes has, in terms of what Apache does next. (And also, where to f

Apache 2.4 Authentication/Authorization

2019-05-15 Thread tomcat
Hi. I am trying to figure out what Apache2::Const return codes /can/ be returned by a mod_perl /authentication/ method under Apache 2.4+, and what consequences each of these return codes has, in terms of what Apache does next. (And also, where to find a commented list of the Apache "AH"

Re: mod_perl interpreter pool

2019-02-24 Thread tomcat
On 24.02.2019 01:50, Gazzali Jaleel wrote: On 2/22/2019 2:15 PM, John Dunlap wrote: The Prefork MPM has the following settings: StartServers 5 MinSpareServers 5 MaxSpareServers 10 MaxRequestWorkers 150

Re: AuthCookieDBI and Apache 2.4

2019-02-20 Thread tomcat
On 20.02.2019 17:28, Michael Schout wrote: On 2/12/19 1:25 PM, Edward J. Sabol wrote: I know AuthCookie has been updated by the magnificient Michael Schout to Thanks for the kind compliments Ed :). I would like to add mine : ++. As for AuthCookieDBI, you may not even need to change it to

Re: HTTP and MPM support

2019-02-08 Thread tomcat
I would like to add my voice to (at least) Russel's and Sive's. Our situation (and I understand most of the non-Perl-PMC's interventors' in this thread is similar) is : - we are interested in the future development of mod_perl, and are willing to "support" or "sponsor" such development - we

Re: HTTP and MPM support

2019-01-27 Thread tomcat
ay for us collectively to to try get the ball moving in that direction, and more than anything, avoid having mod_perl maybe being moved sooner or later to the Apache Attic, for lack of /perceived/ interest ? Genuinely curious and interested André Warnier (soliplaya at apache.org) (don't let the

[OT](a bit) Re: HTTP and MPM support

2019-01-25 Thread tomcat
On 25.01.2019 21:15, Paul B. Henson wrote: On 1/25/2019 11:00 AM, Michael A. Capone wrote: I have to add my voice to the growing chorus here. Me too. Frequently when the topic of mod_perl going stale comes up somebody jumps in with "That's old stuff, you should be using PSGI/Plack". Those

Re: HTTP and MPM support

2019-01-25 Thread tomcat
On 25.01.2019 18:35, John Dunlap wrote: I'm in the process of optimizing our web application for performance and one thing that I was really excited to try was mod_http2 because it allows the browser to send multiple requests through the same TCP connection with compressed headers. However,

Re: does anyone know how to embed webdav protocal into a handler?

2018-12-27 Thread tomcat
On 27.12.2018 08:25, Jeff wrote: yes I have a webdav backend. want to run modperl as its front-proxy. so any experience? happy new year. I have done some things with mod_perl and DAV. But it is not very clear with the above, what you want to do exactly. Can you be a little more descriptive

Re: Upgrading a mod_perl application from Apache 2.2 to Apache 2.4

2018-12-07 Thread tomcat
On 07.12.2018 09:29, Andrew Green wrote: Hi William, Ahhh, ok, just be aware the get_server_description call doesn't exist in 2.2, you need to perform a little eval() magic to guard against that expected failure. That doesn’t seem right — it returns the following when I try it on a 2.2 box:

Re: Upgrading a mod_perl application from Apache 2.2 to Apache 2.4

2018-11-30 Thread tomcat
On 30.11.2018 10:58, Andrew Green wrote: Hi, The time has finally come for me to update my mod_perl CMS from Apache 2.2 to Apache 2.4, but I’m struggling to find documentation on the changes required. The docs on perl.apache.org don’t seem to mention anything specific to Apache 2.4, and the

Re: Future MPM Support?

2018-07-30 Thread tomcat
On 30.07.2018 03:51, Paul B. Henson wrote: On Sun, Jul 29, 2018 at 04:18:54PM -0400, Paul Silevitch wrote: Like Dr. James Smith, I'm hooking into multiple handlers and using filters. Yep, me too; Plack is really not a feature equivilent replacement for mod_perl :(. +1. Plack and other

[OT] Re: handler timeout

2018-03-28 Thread tomcat
are 42,368,982, not all are successful, but 42,362,363 are right. The failed requests are timeout. Thanks. On 2018/3/28 星期三 PM 6:37, André Warnier (tomcat) wrote: On 28.03.2018 12:31, PANG J. wrote: what the client I meant is mobile App. mobile App gets the result from server via SDK. Ok

Re: handler timeout

2018-03-28 Thread tomcat
2018/3/28 星期三 PM 6:37, André Warnier (tomcat) wrote: On 28.03.2018 12:31, PANG J. wrote: what the client I meant is mobile App. mobile App gets the result from server via SDK. Ok. But it is very likely that your "mobile app SDK", also has a timeout after it sends a request to a serv

Re: handler timeout

2018-03-28 Thread tomcat
alternatives to standard HTTP servers, on the server side. If you want to stay in the perl world for that, you may want to have a look at http://search.cpan.org/~miyagawa/Starman-0.1000/lib/Starman.pm regards. On 2018/3/28 星期三 PM 6:37, André Warnier (tomcat) wrote: Ok. But it is very

Re: handler timeout

2018-03-28 Thread tomcat
Addendum : searching Google for "avoid browser timeout" gets plenty of answers, among which this is a perl-oriented one : https://www.perlmonks.org/bare/?node_id=252682 with further links. On 28.03.2018 12:11, André Warnier (tomcat) wrote: Hi. Are we not a bit on the wrong track

Re: handler timeout

2018-03-28 Thread tomcat
Hi. Are we not a bit on the wrong track here ? I believe that the timeout which Pang J. is mentioning, may be the browser-side timeout, which is fixed at the browser level at about 5 minutes or so. When a browser sends a request to a server, and it does receive /some/ response within the next

Re: Recognizing user in PerlFixupHandler

2018-03-12 Thread tomcat
Hi. I do use similar (but a bit less clever) code in one of my modules : if (my $prev = ($r->main || $r->prev)) { $logger->warn("$pfx sub-request or internal redirect") if ($debug > 2); # we are in a subrequest. ... if (defined(my $uid =

Re: serverless programming

2017-12-08 Thread tomcat
On 08.12.2017 02:16, 升龙云 wrote: I checked some documents about serverless programming. I was just confused that, what's the real difference about serverless code and modperl's handler? Well, you have gotten me confused too. I knew nothing about "serverless programming", so I looked it up on

Re: CGI module deprecation

2017-11-30 Thread tomcat
Hi. To contribute my 0.02€ to the matter : First of all, I believe that it is worth re-reading https://metacpan.org/pod/distribution/CGI/lib/CGI.pod#DESCRIPTION and pondering what it really says. For example this : "CGI.pm performs very well in a vanilla CGI.pm environment and also comes with

Re: Shared var between processes

2017-10-22 Thread tomcat
... sub handler { # how do I access $big_hash ? (where is it ?) return OK; } On Sun, Oct 22, 2017 at 6:29 AM, André Warnier (tomcat) <a...@ice-sa.com <mailto:a...@ice-sa.com>> wrote: On 22.10.2017 09:45, Ben RUBSON wrote: On 21 Oct 2017 08:53, André Warnier (tomcat) wrote

Re: Shared var between processes

2017-10-22 Thread tomcat
On 22.10.2017 09:45, Ben RUBSON wrote: On 21 Oct 2017 08:53, André Warnier (tomcat) wrote: On 20.10.2017 17:15, Adam Prime wrote: On 17-10-20 05:17 AM, André Warnier (tomcat) wrote: On 20.10.2017 10:50, Ben RUBSON wrote: On 20 Oct 2017 10:38, André Warnier (tomcat) wrote: I believe

Re: Shared var between processes

2017-10-22 Thread tomcat
a whole setup, and maybe overkill here. JE On Sat, 2017-10-21 at 08:53 +0200, André Warnier (tomcat) wrote: On 20.10.2017 17:15, Adam Prime wrote: On 17-10-20 05:17 AM, André Warnier (tomcat) wrote: On 20.10.2017 10:50, Ben RUBSON wrote: On 20 Oct 2017 10:38, André Warnier (tomcat) wrote

Re: Shared var between processes

2017-10-21 Thread tomcat
On 20.10.2017 17:15, Adam Prime wrote: On 17-10-20 05:17 AM, André Warnier (tomcat) wrote: On 20.10.2017 10:50, Ben RUBSON wrote: On 20 Oct 2017 10:38, André Warnier (tomcat) wrote: I believe that there is much more of a performance hit, when asking the server to set up an environment ($ENV

Re: Shared var between processes

2017-10-20 Thread tomcat
On 20.10.2017 11:36, Ben RUBSON wrote: On 20 Oct 2017 11:17, André Warnier (tomcat) wrote: On 20.10.2017 10:50, Ben RUBSON wrote: On 20 Oct 2017 10:38, André Warnier (tomcat) wrote: On 19.10.2017 22:02, John Dunlap wrote: To piggy back onto this question, what is the best way to do

Re: Shared var between processes

2017-10-20 Thread tomcat
On 20.10.2017 10:50, Ben RUBSON wrote: On 20 Oct 2017 10:38, André Warnier (tomcat) wrote: On 19.10.2017 22:02, John Dunlap wrote: To piggy back onto this question, what is the best way to do this such that the values of the variables are different for every virtual host? In our model, all

Re: Shared var between processes

2017-10-20 Thread tomcat
On 19.10.2017 22:02, John Dunlap wrote: To piggy back onto this question, what is the best way to do this such that the values of the variables are different for every virtual host? In our model, all virtual hosts shared the same interpreter pool but we need to have different configuration

Re: access control

2017-10-19 Thread tomcat
On 19.10.2017 12:48, Ken Peng wrote: Hi, for a common object on server, for example, http://a.com/b.jpg, when it can be accessed by client, I want to apply some access control on it, for example, the IP based AC rules. How will mod_perl handler deal with this? thanks. If you do the

Re: Compiling with Apache 2.4

2017-09-30 Thread tomcat
On 30.09.2017 16:39, Ruben Safir wrote: On 09/28/2017 11:21 AM, Matthias Schmitt wrote: cd /MySourcePath/pcre-8.41 ./configure --prefix=/MyHttpdPrefixPath make make test make install what is pcre? I don't what the context of the questions is, but "pcre" stands for "Perl Compatible Regular

Re: debugging mod_perl fails

2017-09-21 Thread tomcat
Hi. I did not look at the page you mention below, but in the Apache::DB page on CPAN, https://metacpan.org/pod/distribution/Devel-DebugHooks/lib/Apache/DB.pm it says : If you are using mod_perl 2.0 you will need to use the following as your db.pl: use APR::Pool (); use Apache::DB ();

Re: New Windows mod_perl binaries available

2017-09-06 Thread tomcat
On 06.09.2017 03:12, Philippe Chiasson wrote: That’s great, thanks Steve! +1 Another recent caller on the list should be very happy too. Sent from the depths of my mind on an iPhone On Sep 5, 2017, at 7:14 PM, Steve Hay wrote: For those who are interested, I

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

2017-09-03 Thread tomcat
If it may help : Steve Hay was very helpful to me some time (and Apache/perl versions) ago, building new binary versions on request. I'd suggest to drop him a line. On 03.09.2017 19:51, Randolf Richardson wrote: There's no need to apologize -- you also pose a good question. I

Re: Modifying @INC on a Per-VirtualHost

2017-08-20 Thread tomcat
On 19.08.2017 23:29, Ben RUBSON wrote: On 19 Aug 2017, at 22:40, Ben RUBSON wrote: Hi list, I have a question regarding tuning @INC at VirtualHost level, with prefork MPM. (...) will I have 2 (2 different PerlSwitches configurations) or 11 (11 different VH using

[OT] Re: about request route ($r->path_info)

2017-08-08 Thread tomcat
Hi Randolf. I mark this OT because it is not directly related to the OP's initial question. But maybe a nitpick : The httpd documentation on AcceptPathInfo is certainly interesting to read (and in years of working with Apache httpd and mod_perl I have never seen it before), but I believe that

Re: unsubscribe

2017-08-07 Thread tomcat
On 07.08.2017 14:30, Timon Roth wrote: unsubscribe See : http://perl.apache.org/maillist/modperl.html#Subscription_Information . unsubscribe from the list

Re: about request route

2017-08-07 Thread tomcat
On 07.08.2017 13:18, 风河 wrote: Hi, for this like request: curlhttp://dns-api.org//dns-api.org in Dancer we could write: get '/:type/:domain/?' => sub { my $rtype = params->{ 'type' }; my $domain = params->{ 'domain' }; But in a MP handler, how could we get the similiar

Re: Log and special characters

2017-08-02 Thread tomcat
On 02.08.2017 11:25, Ben RUBSON wrote: We would then be able to correctly log 'André' Actually, this is how I most often get it, on the web and in scam emails : "Hi André," To the savvy and experienced multilingual-application-programming expert, this of course is entirely transparent : -

Re: Log and special characters

2017-08-02 Thread tomcat
On 02.08.2017 11:25, Ben RUBSON wrote: On 02 Aug 2017, at 11:17, André Warnier (tomcat) <a...@ice-sa.com> wrote: On 02.08.2017 10:59, Ben RUBSON wrote: On 02 Aug 2017, at 10:52, André Warnier (tomcat) <a...@ice-sa.com> wrote: On 01.08.2017 19:30, Ben RUBSON wrote: Hi, The f

Re: MP framework

2017-08-02 Thread tomcat
an answer. What actual problem are you trying to solve ? or : What is the problem with your current solution / (separate) tools, which makes you try to find another one ? On Wed, Aug 2, 2017, at 05:42 PM, André Warnier (tomcat) wrote: On 02.08.2017 11:19, 风河 wrote: Hi currently we were

Re: MP framework

2017-08-02 Thread tomcat
On 02.08.2017 11:19, 风河 wrote: Hi currently we were developing the methods mostly as handlers. is there a new popular framework for full stack development of modperl? Yes, many. See here : http://lmgtfy.com/?q=perl+web+development+frameworks We (still) use Template::Toolkit, which many

Re: Log and special characters

2017-08-02 Thread tomcat
On 02.08.2017 10:59, Ben RUBSON wrote: On 02 Aug 2017, at 10:52, André Warnier (tomcat) <a...@ice-sa.com> wrote: On 01.08.2017 19:30, Ben RUBSON wrote: Hi, The following UTF-8 : warn("warn with special char ééèè"); $r->log->error("log with special char ééèè"

Re: Log and special characters

2017-08-02 Thread tomcat
On 01.08.2017 19:30, Ben RUBSON wrote: Hi, The following UTF-8 : warn("warn with special char ééèè"); $r->log->error("log with special char ééèè"); Produces : warn with special char ééèè at ... [Tue Aug 01 19:25:28.914947 2017] [perl:error] [pid 56938] [client 127.0.0.1:59952] log with

Re: [Slightly OT] Apache::AuthCookie and mod_perl version 1.x

2017-08-01 Thread tomcat
On 01.08.2017 03:14, 风河 wrote: Most are mobile App interfaces. And, just by curiosity : do you use any kind of authentication with these apps, and if yes which kind ? On Tue, Aug 1, 2017, at 09:07 AM, Jie Gao wrote: * 风河 wrote: Date: Tue, 1 Aug 2017 08:57:29 +0800

Re: [Slightly OT] Apache::AuthCookie and mod_perl version 1.x

2017-07-31 Thread tomcat
Hi. From a heavy (indirect) user of Apache2::AuthCookie (and it's 2.4 incantation), first of all, thanks. And in particular, thank you for the work done to make this compatible with the changes in Apache 2.4, despite the paucity of original documentation available. And I don't speak for

Re: lost headers

2017-06-14 Thread tomcat
Hi. To avoid another round of questions/answers, it would be better to provide some versions of what you are using, right away. One quick way of doing this, is to insert here the line which appears in your Apache webserver main error logfile at startup. It shows the Apache httpd version, the

Re: mod_perl and cgi-script handler

2017-06-11 Thread tomcat
; will now store a pre-compiled copy of every perl cgi-bin script that has been run since this child was started. But if your scripts are run many times, the performance improvement is really dramatic. On 11.06.2017 11:36, André Warnier (tomcat) wrote: Hi. Now that you mention this,

Re: mod_perl and cgi-script handler

2017-06-11 Thread tomcat
Hi. Now that you mention this, I believe that the original "mistake" in your configuration was the .. SetHandler modperl .. and by just taking that line out, you would have the same effect (without the ). SetHandler is the line which originally overrides the effect of "ScriptAlias".

Re: mod_perl and cgi-script handler

2017-06-09 Thread tomcat
Hi. I am using much the same kind of config (Apache 2.4, mod_perl, own AAA module, cgi-bin) in multiple places, and have not seen that issue yet. But let me gather some additional info, to make sure, and I'll get back here. On 09.06.2017 12:35, Jie Gao wrote: Hi All I have run into a

Re: Please help: resource limit for running Perl under Apache?

2017-05-22 Thread tomcat
Hi. It sounds like what you need to do is : add some logging directly in your perl script, to a separate logfile. (And maybe re-open STDERR to that same logfile). Then you will see exactly where and why the perl script crashes under Apache. Do not forget that when the perl script runs under

Re: Flush headers ?

2017-02-06 Thread tomcat
On 06.02.2017 18:33, Ben RUBSON wrote: Hi, I'm using mod_perl2 and I'm trying to flush headers before the body content. $r->content_type('application/zip'); $r->headers_out->add('Content-Disposition' => 'attachment'); $r->rflush; long_operation(); Unfortunately this does not work. When you

Re: Looking for solution to Apache2::AuthCookieDBI authentication on Apache > 2.4

2016-08-24 Thread tomcat
Hi. On 24.08.2016 14:40, Tosh Cooey wrote: Hi, I've taken a stab at updating Apache2::AuthCookieDBI myself as per: http://search.cpan.org/~mschout/Apache-AuthCookie/README.apache-2.4.pod I've changed the parent of Apache2::AuthCookieDBI to Apache2_4::AuthCookie but that doesn't seem to work,

Re: write handlers with C or modperl?

2016-07-22 Thread tomcat
On 22.07.2016 11:00, yhp...@orange.fr wrote: Hello, We have some handlers which were written by modperl for API endpoints. yes developing a apache handler with modperl is so easy and quick. but for better performance we also consider the C handler. (one of the APIs has got 1,500,000 accesses by

Re: random token re-used in subsequent requests

2016-05-16 Thread tomcat
On 16.05.2016 16:38, Vincent Veyron wrote: Hi, I use the code shown here : http://pastebin.com/6YL9FWGX in a mod_perl handler. At line 57, $args->{_token_id} ||= ... generates a random token that is used to uniquely identify the request (users may reload the URL in two different windows),

Re: mod_perl 2.0.9 make test dumped core

2016-05-10 Thread tomcat
On 10.05.2016 22:20, Niko Tyni wrote: On Tue, May 10, 2016 at 07:45:45PM +, Xinhuan Zheng wrote: Today I used mod_perl 2.0.9, apache httpd 2.4.20 and perl 5.10.1 isn't this also a somewhat low version of perl ? the current version is at least 5.22, and 5.10 must be at least 3-4 years

Re: close connection for request, but continue

2016-04-21 Thread tomcat
On 21.04.2016 11:20, Iosif Fettich wrote: Dear mod_perl list, please consider my gratefulness for any hints/insight :) I'm trying to achieve the following: when there is an incoming request, I want to set a time limit in which an answer should be delivered to the client, no matter what.

Re: mod_perl startup script and logging

2016-04-10 Thread tomcat
Sorry, never mind, found it : my $server = Apache2::ServerUtil->server(); my $apache_version = Apache2::ServerUtil::get_server_version(); $server->log_error("mp2-startup: server version is " . $apache_version); On 10.04.2016 16:48, André Warnier (to

mod_perl startup script and logging

2016-04-10 Thread tomcat
Hi. Linux Debian Apache httpd 2.4 mod_perl 2.0.9 ... PerlPostConfigRequire "/etc/apache2/modperl2_startup.pl" ... modperl2_startup.pl contains the usual "use" directives, including use Apache2::ServerRec (); use Apache2::ServerUtil (); use Apache2::Log (); If in this script, I would like

Re: question on Apache2_4::AuthCookie

2016-04-07 Thread tomcat
On 07.04.2016 21:12, Lathan Bidwell wrote: 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