[mp2] Custom directives

2004-05-13 Thread Brent 'Dax' Royal-Gordon
Hello, I'm writing a pure-Perl Apache 2 module that installs a few custom directives. Four of the directives are only useful in the server root (i.e. outside of any VirtualHost, Directory, etc. directives), but three others make sense within containers. The directives seem to parse correctly,

Re: [mp2] Custom directives

2004-05-13 Thread Stas Bekman
Brent 'Dax' Royal-Gordon wrote: Hello, I'm writing a pure-Perl Apache 2 module that installs a few custom directives. Four of the directives are only useful in the server root (i.e. outside of any VirtualHost, Directory, etc. directives), but three others make sense within containers. The dire

Re: [mp2] Custom directives

2004-05-14 Thread Brent 'Dax' Royal-Gordon
Stas Bekman wrote: Even with a line in my httpd.conf like: PerlLoadModule Apache::Regulate RegulateDatabase 'dbi:mysql:apache' apache [redacted] Please try: # start perl early PerlLoadModule Apache::Regulate RegulateDatabase 'dbi:mysql:apache' apache [redacted] Doesn't seem to have helpe

Re: [mp2] Custom directives

2004-05-14 Thread Stas Bekman
Brent 'Dax' Royal-Gordon wrote: Stas Bekman wrote: Even with a line in my httpd.conf like: PerlLoadModule Apache::Regulate RegulateDatabase 'dbi:mysql:apache' apache [redacted] Please try: # start perl early PerlLoadModule Apache::Regulate RegulateDatabase 'dbi:mysql:apache' apache [r

Re: [mp2] Custom directives

2004-05-14 Thread Geoffrey Young
> sub SERVER_CREATE { > return bless { > Database=> ['DBI:mysql:Regulate'], > ... > }, shift; > } > sub global_init #:PostConfigHandler > { > my(undef, undef, undef, $s)[EMAIL PROTECTED]; > my $conf=Apache::Module->get_co

Re: [mp2] Custom directives

2004-05-14 Thread Brent 'Dax' Royal-Gordon
Stas Bekman wrote: I still didn't have a chance to look at it in details, but could it be the issue with merging not performing a deep copy? http://perl.apache.org/docs/2.0/user/config/custom.html#Merging_Entries_Whose_Values_Are_References I don't think so--the only operation I do on that array

Re: [mp2] Custom directives

2004-05-14 Thread Stas Bekman
Brent 'Dax' Royal-Gordon wrote: Stas Bekman wrote: I still didn't have a chance to look at it in details, but could it be the issue with merging not performing a deep copy? http://perl.apache.org/docs/2.0/user/config/custom.html#Merging_Entries_Whose_Values_Are_References I don't think so--the

Re: [mp2] Custom directives

2004-05-14 Thread Brent 'Dax' Royal-Gordon
Stas Bekman wrote: a=SERVER_CREATE(); b=SERVER_CREATE(); RegulateDatabase(a, ...); global_init(b); global_init(c); I have no idea where 'c' is coming from--like I said, I've instrumented {SERVER,DIR}_{CREATE,MERGE}, which I think should cover everything. PostConfig is called t

Re: [mp2] Custom directives

2004-05-17 Thread Geoffrey Young
> I have no idea where 'c' is coming from--like I said, I've instrumented > {SERVER,DIR}_{CREATE,MERGE}, which I think should cover everything. actually, probably too much :) you haven't replied to my email yet, where it looks to me like some of your directives are coming through just fine, but

Apache start/restart nuances (was Re: [mp2] Custom directives)

2004-05-14 Thread Stas Bekman
Brent 'Dax' Royal-Gordon wrote: Stas Bekman wrote: a=SERVER_CREATE(); b=SERVER_CREATE(); RegulateDatabase(a, ...); global_init(b); global_init(c); I have no idea where 'c' is coming from--like I said, I've instrumented {SERVER,DIR}_{CREATE,MERGE}, which I think should cover e

Re: Apache start/restart nuances (was Re: [mp2] Custom directives)

2004-05-17 Thread Geoffrey Young
> They aren't yet available in mp2, mostly due to the fact > that they weren't available in the Apache API until recently, and from > what Geoff has mentioned it seems to be incomplete yet. Geoff, what's > the current status of these query flags? I wasn't following cvs commits > for quite some time

Re: Apache start/restart nuances (was Re: [mp2] Custom directives)

2004-05-17 Thread Stas Bekman
Geoffrey Young wrote: They aren't yet available in mp2, mostly due to the fact that they weren't available in the Apache API until recently, and from what Geoff has mentioned it seems to be incomplete yet. Geoff, what's the current status of these query flags? I wasn't following cvs commits for qui

Re: Apache start/restart nuances (was Re: [mp2] Custom directives)

2004-05-17 Thread Geoffrey Young
> Hmm, have you by chance missed that I actually wrote the code that does > that in the message that this reply goes to? And as I show there, it > doesn't work. Please see my original (previous) post. thanks. sorry, I guess I was answering a different question. :) I thought you were asking about

Re: Apache start/restart nuances (was Re: [mp2] Custom directives)

2004-05-17 Thread Stas Bekman
Geoffrey Young wrote: Hmm, have you by chance missed that I actually wrote the code that does that in the message that this reply goes to? And as I show there, it doesn't work. Please see my original (previous) post. thanks. sorry, I guess I was answering a different question. :) :) I thought you