Re: shuffle a array

2022-08-16 Thread Jacques Deguest
I think this kind of question is not modperl specific and best suited for StackOverlow -> On 2022/08/17 10:07, pengyh wrote: in my modperl app I want to shuffle an array. such as this method in

Re: how to enable SSL for a handler

2022-07-03 Thread Jacques Deguest
oot IMO. I will check this configuration. Regards. On Sun, Jul 3, 2022 at 7:53 PM Jacques Deguest wrote: Re, You're probably going to need a DocRoot directive somewhere though. You might want to check the sanity of your configuration with Apache command line -t flag On 2022/0

Re: how to enable SSL for a handler

2022-07-03 Thread Jacques Deguest
Re, You're probably going to need a DocRoot directive somewhere though. You might want to check the sanity of your configuration with Apache command line -t flag On 2022/07/03 19:32, Jacques Deguest wrote: Sure, comment out all the perl stuff that are not required for certbot to work, run

Re: how to enable SSL for a handler

2022-07-03 Thread Jacques Deguest
ler LuckyNum ErrorLog ${APACHE_LOG_DIR}/error.log LogLevel warn CustomLog ${APACHE_LOG_DIR}/luck.access.log combined How do you think I can set up the SSL? I asked it just b/c "certbot --apache" doesn't work for this handler. Thanks. On Sun, Jul 3, 2022 at 6:24 PM

Re: how to enable SSL for a handler

2022-07-03 Thread Jacques Deguest
You do not even need to have a virtualhost with ssl enabled for certbot to work. You can have a simple VirtualHost responding to regular 80 port, then get the ssl certificate, then add the VirtualHost for SSL and all your modperl specifications to it. Something like the following, and once you

Re: path recognition question

2022-04-20 Thread Jacques Deguest
I would use path_info. See Apache2::RequestRec manual page. Regards, Jacques On 2022/04/21 12:21, Henrik S wrote: given the sample url: /api/user/id the part of "/api/user" is fixed.  and there is a handler setup for this path. how to get the id part in mod_perl? in other framework I

Re: Problem with my code for passing block

2022-01-11 Thread Jacques Deguest
Yamada-san, The value you pass to 'run' is not a code reference, but an hash reference, i.e. '{}' A code reference would be: 'sub{}', so do '$obj->run( sub{ "hello world"} );' instead. Jacques On 2022/01/11 17:51, Yamadaえりな wrote: Good afternoon, Can you help check my problem with this?

Re: mod_dav question

2022-01-11 Thread Jacques Deguest
ing it, declining it, etc. } Kind regards, Jacques Deguest (incidentally Tokyo, Japan) On 2022/01/11 13:49, Yamadaえりな wrote: Hello list, We are using mod_dav with apache2.4 to manage files via webdav protocol. We want to limit file uploading based on the user's total storage. For instance, if a user has

Re: [RELEASE CANDIDATE] mod_perl-2.0.12 RC2

2021-12-22 Thread Jacques Deguest
you all a great end of year festivities and express my gratitude to Steve Hay and all others contributing. This is an awesome piece of software! Kind regards, Jacques Deguest On 2021/12/22 20:32, André Warnier (tomcat/perl) wrote: Hi. "> I was thinking this project has died.&q

Re: Sharing read/WRITE data between threads?

2021-08-25 Thread Jacques Deguest
Or you can also consider using IPC::Shareable <https://metacpan.org/pod/IPC::Shareable> if your system supports IPC. Jacques Deguest On 2021/08/25 17:11, Brad Van Sickle wrote: > I've shared read-only data across threads many times a cheap and easy > caching mechanims, but as I'm

Re: [RFC] Apache::Inject

2021-04-24 Thread Jacques Deguest
e anywhere. However, I agree "it is useful for adding headers and footers to a large number of pre-existing static HTML pages" although arguably if they are static why not just pre-process them once and for all ? P.S.: I am the author of Apache2::SSI Regards, Jacques Deguest On 2021/04/25 1:30

How to create an APR::SockAddr object

2020-12-31 Thread Jacques Deguest
how to do so. I would appreciate any guidance on this. Kind regards, Jacques Deguest