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

2019-08-07 Thread John Dunlap
Then you're much more fortunate than I am. :( On Wed, Aug 7, 2019, 11:06 AM Thorsten Schöning wrote: > Guten Tag John Dunlap, > am Mittwoch, 7. August 2019 um 16:26 schrieben Sie: > > > This will cause you a lot of grief. As I understand things, the core perl > > interpreter supports threads

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

2019-08-07 Thread Thorsten Schöning
Guten Tag John Dunlap, am Mittwoch, 7. August 2019 um 16:26 schrieben Sie: > This will cause you a lot of grief. As I understand things, the core perl > interpreter supports threads and is thread safe. However, most of the > modules available on CPAN are not thread safe. So, unless your

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

2019-08-07 Thread John Dunlap
> And that's exactly what I need to do with "PerlOptions +Parent"... This is how I support multiple code versions, when necessary. However, I strive to avoid this because it causes performance issues and makes server restarts take forever. > I need to support Windows which only supports some

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

2019-08-07 Thread Thorsten Schöning
Guten Tag André Warnier, am Mittwoch, 7. August 2019 um 15:21 schrieben Sie: > In the PerlPostConfigRequire phase, there is no request yet, so there is no > "selected" > VHost yet. > (But maybe, yes, it does get executed once per "VirtualHost" in the > configuration; that, I > really don't

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: How to get “my” VHOST in code executed by PerPostConfigRequire?

2019-08-06 Thread John Dunlap
We do it with PerlSetVar: PerlSetVar vhost MY_COOL_SITE On Mon, Aug 5, 2019 at 1:19 PM Thorsten Schöning wrote: > Hi all, > > I'm hosting multiple instances of the same web app in different > versions using the same instance of HTTPd and one VHOST per > instance/version of web app currently.

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

2019-08-05 Thread Thorsten Schöning
Guten Tag Thorsten Schöning, am Montag, 5. August 2019 um 19:18 schrieben Sie: > The problem is that I'm having trouble how to find the VHOST > currently executing that handler. The only thing which came into my mind is using environment variables per VHOST like in the following examples: >

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

2019-08-05 Thread Thorsten Schöning
Hi all, I'm hosting multiple instances of the same web app in different versions using the same instance of HTTPd and one VHOST per instance/version of web app currently. I would like to use mod_perl's "PostConfigRequire" to implement a handler pre-loading all those instances during server