problem with shared memory and directives for httpd

2014-12-04 Thread nik600
Dear all i'm experiencing a problem with shared memory and i'm not able to figure it out. i've got a segment of shared memory in my module config and seen that if set some settings for the module in my configuration this memory isn't available in the request process. i've also attached an

Preventing Path Traversal Attack

2014-12-04 Thread Justin Kennedy
Good day, In my handler hook I've implemented some code in an attempt to prevent this attack. Unfortunately it doesn't take into account that there might be spaces in the URL. Has anyone already overcome this or can provide a proper solution? Here is the code in question: /* ensure r-uri and

RE: problem with shared memory and directives for httpd

2014-12-04 Thread Eric Johanson
You have no merge function defined for your server-level config structure (kcache_config). I would definitely try implementing that function. Otherwise, when apache goes to combine two levels of the config hierarchy together, the resulting combination is likely to just be an empty version of

Re: problem with shared memory and directives for httpd

2014-12-04 Thread nik600
Hi thanks for your reply. i've tried also with a merging function but i have the same behaviour. Attached the same example with also merge function. Maybe i'm doing something wrong in my merge function? 2014-12-04 16:33 GMT+01:00 Eric Johanson er...@valmarc.com: You have no merge function

RE: problem with shared memory and directives for httpd

2014-12-04 Thread Eric Johanson
Okay but why are you managing the kcache_config structure with both the per-directory AND the server-level functions? You should decide if your kcache_config is server-wide or if it is per-directory, and use only the appropriate functions. -Eric From: nik600 [mailto:nik...@gmail.com] Sent:

Re: problem with shared memory and directives for httpd

2014-12-04 Thread nik600
because i've tried with both or with only one. IE, if i use: module AP_MODULE_DECLARE_DATA kcache_module = { STANDARD20_MODULE_STUFF,NULL , NULL, create_server_conf, merge_conf, kcache_directives, register_hooks }; i have the same behaviour 2014-12-04 17:32 GMT+01:00 Eric Johanson

Re: problem with shared memory and directives for httpd

2014-12-04 Thread Yann Ylavic
Hi, to not depend on where you declare : IfModule mod_kcache.c KcacheEnabled On /IfModule you need to iterate over the server_rec list in post_config and child_init hooks. Please see attached modifications (where only a server_config is used). Regards, Yann. On Thu, Dec 4, 2014 at

Re: problem with shared memory and directives for httpd

2014-12-04 Thread Yann Ylavic
On Thu, Dec 4, 2014 at 10:52 PM, Yann Ylavic ylavic@gmail.com wrote: Please see attached modifications (where only a server_config is used). Note that I did not even test compile the chages, just a POC...

Re: problem with shared memory and directives for httpd

2014-12-04 Thread nik600
yes, now it works, thanks again! 2014-12-04 23:49 GMT+01:00 nik600 nik...@gmail.com: Thanks a lot! i've understand the logic... i'll try and let you know! 2014-12-04 23:43 GMT+01:00 Yann Ylavic ylavic@gmail.com: On Thu, Dec 4, 2014 at 10:52 PM, Yann Ylavic ylavic@gmail.com wrote:

Re: ApacheCon Austin, httpd track

2014-12-04 Thread Eric Covener
On Tue, Dec 2, 2014 at 4:14 PM, Jim Riggs apache-li...@riggs.me wrote: P.S. mod_proxy_balancer - mod_proxy_fcgi - php-fpm is really fun and interesting too! ;-) mod_proxy_fcgi seems to need a bit of work from what I have been seeing in bugzilla and IRC. I hope to spend a little time on the

Re: ApacheCon Austin, httpd track

2014-12-04 Thread Jeff Trawick
On Thu, Dec 4, 2014 at 9:58 AM, Eric Covener cove...@gmail.com wrote: On Tue, Dec 2, 2014 at 4:14 PM, Jim Riggs apache-li...@riggs.me wrote: P.S. mod_proxy_balancer - mod_proxy_fcgi - php-fpm is really fun and interesting too! ;-) mod_proxy_fcgi seems to need a bit of work from what I have

Re: ApacheCon Austin, httpd track

2014-12-04 Thread Graham Leggett
On 02 Dec 2014, at 4:29 PM, Rich Bowen rbo...@rcbowen.com wrote: Given the focus on SSL in the last year, I think that a talk exactly like that would be appreciated, and could even be a great talk to use to market the track as a whole. I think a lot of people are waking up to the fact that

mod_proxy_fcgi issues

2014-12-04 Thread Eric Covener
forked from apachecon thread On Thu, Dec 4, 2014 at 10:23 AM, Jeff Trawick traw...@gmail.com wrote: On Thu, Dec 4, 2014 at 9:58 AM, Eric Covener cove...@gmail.com wrote: On Tue, Dec 2, 2014 at 4:14 PM, Jim Riggs apache-li...@riggs.me wrote: P.S. mod_proxy_balancer - mod_proxy_fcgi - php-fpm

Re: ApacheCon Austin, httpd track

2014-12-04 Thread Graham Leggett
On 02 Dec 2014, at 3:02 PM, Jim Jagielski j...@jagunet.com wrote: The idea is that being a project with a long, long history, httpd has the unfortunate reputation of being old, slow, and basically, not the new hotness. So even though the project has been around, 2.4 is vastly different, and

Re: mod_proxy_fcgi issues

2014-12-04 Thread Jeff Trawick
On Thu, Dec 4, 2014 at 10:38 AM, Eric Covener cove...@gmail.com wrote: forked from apachecon thread On Thu, Dec 4, 2014 at 10:23 AM, Jeff Trawick traw...@gmail.com wrote: On Thu, Dec 4, 2014 at 9:58 AM, Eric Covener cove...@gmail.com wrote: On Tue, Dec 2, 2014 at 4:14 PM, Jim Riggs

Re: mod_proxy_fcgi issues

2014-12-04 Thread Jim Riggs
On Thu, Dec 4, 2014 at 9:58 AM, Eric Covener cove...@gmail.com wrote: On Tue, Dec 2, 2014 at 4:14 PM, Jim Riggs apache-li...@riggs.me wrote: P.S. mod_proxy_balancer - mod_proxy_fcgi - php-fpm is really fun and interesting too! ;-) mod_proxy_fcgi seems to need a bit of work from what I

Re: mod_proxy_fcgi issues

2014-12-04 Thread Eric Covener
On Thu, Dec 4, 2014 at 1:11 PM, Jim Riggs apache-li...@riggs.me wrote: This all may certainly be true, but I just for clarity's sake (since it was my quote that started this new mod_proxy_fcgi thread), my mod_proxy_balancer - mod_proxy_fcgi - php-fpm issue is NOT an httpd issue...at least

Re: mod_proxy_fcgi issues

2014-12-04 Thread Mark Montague
On 2014-12-04 13:27, Eric Covener wrote: On Thu, Dec 4, 2014 at 1:11 PM, Jim Riggs apache-li...@riggs.me wrote: This all may certainly be true, but I just for clarity's sake (since it was my quote that started this new mod_proxy_fcgi thread), my mod_proxy_balancer - mod_proxy_fcgi - php-fpm