Re: Shared var between processes

2017-10-19 Thread John Dunlap
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 variables on a per virtualhost basis. Currently,

Re: Shared var between processes

2017-10-19 Thread Ben RUBSON
Nice, perfect, just tested, working perfectly ! Thank you very much Adam ! Ben On 19 Oct 2017 18:39, Adam Prime wrote: If it doesn't need to change then you should be able to set it in PerlPostConfigRequire code, and it will then be available to all children in copy on write memory (ie any

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 authenti

Re: Shared var between processes

2017-10-19 Thread Adam Prime
If it doesn't need to change then you should be able to set it in PerlPostConfigRequire code, and it will then be available to all children in copy on write memory (ie any change will only affect the process that changed it.) https://perl.apache.org/docs/2.0/user/handlers/server.html#Startup_F

Shared var between processes

2017-10-19 Thread Ben RUBSON
Hi, I'm trying to share a var between the different processes of my prefork Apache. I then tried the following idea : $r->server()->dir_config('var','val'); Unfortunately, $r->server()->dir_config('var') is not shared among the processes. I would have thought config was stored at the very f

Re: access control

2017-10-19 Thread Adam Prime
With a PerlAccessHandler, see: https://perl.apache.org/docs/2.0/user/handlers/http.html#PerlAccessHandler Adam On 17-10-19 06:48 AM, 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 i

access control

2017-10-19 Thread Ken Peng
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.    Regards,   Ken Peng