RE: Perl sections in Apache conf files

2012-01-16 Thread Desilets, Alain
}; --- But Apache does not start. What am I doing wrong here? From: Desilets, Alain [alain.desil...@nrc-cnrc.gc.ca] Sent: Monday, January 16, 2012 4:36 PM To: modperl@perl.apache.org Subject: Perl sections in Apache conf files I am trying

Perl sections in Apache conf files

2012-01-16 Thread Desilets, Alain
I am trying to use sections in my Apache conf files, in order to automate management of my various installations on various servers. Looking at this page: http://perl.apache.org/docs/2.0/api/Apache2/PerlSections.html#Configuration_Variables I gather that any directive that can be written in

PerlOptions -Sections not permitted in server config

2011-10-04 Thread Damyan Ivanov
) =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= I'm unable to disable sections, as described here: http://perl.apache.org/docs/2.0/user/config/config.html#C_Perl_Handler_ So, according to the documentation, I should be able to simply place the following in the server configur

Considering using Perl Sections

2010-10-01 Thread Chris Bennett
the AuthCookie sections out into confs for each virtual host using it, learn to use Perl Sections, or something different? Any suggestions are welcome. Thanks Chris Bennett

RE: Considering using Perl Sections

2010-10-01 Thread eric.berg
We use a combination of Perl sections and Template Toolkit to generate our apache configs. The Perl sections are good for run-time setup for things like host names (i.e., to name logs per host in our cluster) and the templating is good for setting up things like multiple proxies that have just

Re: Considering using Perl Sections

2010-10-01 Thread Michael Peters
On 10/01/2010 04:47 PM, Chris Bennett wrote: At this point, should I break the AuthCookie sections out into confs for each virtual host using it, learn to use Perl Sections, or something different? Any suggestions are welcome. We actually like using templated httpd.conf files (we use HTML

Considering using Perl Sections

2010-10-01 Thread Chris Bennett
break the AuthCookie sections out into confs for each virtual host using it, learn to use Perl Sections, or something different? Any suggestions are welcome. Thanks Chris Bennett

Re: Caveats to using Perl Sections for server configuration?

2010-01-15 Thread Issac Goldstand
FWIW, you can look at the source of Apache::UploadMeter to see an example of sections in use - they're actually called during the httpd.conf parsing triggered by statements found in the httpd.conf Issac Perrin Harkins wrote: > I don't use them, but in a startup.pl you would be i

Re: Caveats to using Perl Sections for server configuration?

2010-01-14 Thread Perrin Harkins
I don't use them, but in a startup.pl you would be in a different package. - Perrin On Wed, Jan 13, 2010 at 8:59 PM, Boysenberry Payne wrote: > Do you know if the scope of Perl Sections are the same as when using a > startup.pl? > > -bop > > On Jan 13, 2010, at 2:15 P

Re: Caveats to using Perl Sections for server configuration?

2010-01-13 Thread Boysenberry Payne
Do you know if the scope of Perl Sections are the same as when using a startup.pl? -bop On Jan 13, 2010, at 2:15 PM, Perrin Harkins wrote: > On Wed, Jan 13, 2010 at 3:22 PM, Boysenberry Payne > wrote: >> I'm using blocks in my apache conf files for early server >&

Re: Caveats to using Perl Sections for server configuration?

2010-01-13 Thread Perrin Harkins
On Wed, Jan 13, 2010 at 3:22 PM, Boysenberry Payne wrote: > I'm using blocks in my apache conf files for early server > configuration. > I remember reading someone on this list saying they wouldn't use Perl > Sections at all. That might have been me. I don't l

Caveats to using Perl Sections for server configuration?

2010-01-13 Thread Boysenberry Payne
I'm using blocks in my apache conf files for early server configuration. I remember reading someone on this list saying they wouldn't use Perl Sections at all. The main reason I chose to use them to initialize some of my server configuration was to allow for relative addressing to

Re: code in sections executed twice in same process?

2009-11-17 Thread Adam Prime
E R wrote: The sections don't seem to be executed in the children. use a PerlChildInitHandler if you want to run code in the children. Is there a way to determine which pass you are in? For large mod_perl apps, is there a way to avoid loading your code in twice? Note I am using mod

Re: code in sections executed twice in same process?

2009-11-17 Thread E R
The sections don't seem to be executed in the children. Is there a way to determine which pass you are in? For large mod_perl apps, is there a way to avoid loading your code in twice? Note I am using mod_perl 1.3.41. Thanks, ER On Mon, Nov 16, 2009 at 4:41 PM, André Warnier wrote:

Re: code in sections executed twice in same process?

2009-11-16 Thread André Warnier
E R wrote: ... Is this "normal", and what can I do so that the code in sections is only executed once in the parent process? I believe it is "normal", in the sense that Apache actually parses its configuration at least twice : one time "just for checking", then

code in sections executed twice in same process?

2009-11-16 Thread E R
is "normal", and what can I do so that the code in sections is only executed once in the parent process? Thanks, ER

Re: Virtual Hosts in "Perl" sections.

2006-09-24 Thread Fred Moyer
Krist van Besien wrote: Hello, The folllowing piece: 1 2 $VirtualHost{"0.0.0.0"} = { 3 DocumentRoot => "/home/foo/webservers/wiki.foo.net/htdocs", 4 ServerName => "wiki.foo.net", 5 }; 6 7 8 Creates a virtual host that is equivalent to the f

Virtual Hosts in "Perl" sections.

2006-09-24 Thread Krist van Besien
Hello, The folllowing piece: 1 2 $VirtualHost{"0.0.0.0"} = { 3 DocumentRoot => "/home/foo/webservers/wiki.foo.net/htdocs", 4 ServerName => "wiki.foo.net", 5 }; 6 7 8 Creates a virtual host that is equivalent to the following code: Serve

Re: how to use mod_perl sections with mod_jk?

2006-08-02 Thread robert
> JkShmFile $logDir/jk-runtime-status > > END > > > Please note in order to do the $ENV above I have to have this. > > > > > # repopulate %ENV > > > for (`env`) { > > next unless /^X_/; > > /(.*)=(.*)/; >

Re: how to use mod_perl sections with mod_jk?

2006-08-02 Thread Andreas J. Koenig
> for (`env`) { > next unless /^X_/; > /(.*)=(.*)/; > $ENV{$1} = $2; > push @PassEnv, $1; > #print "$_\n"; > } > this essentially puts back what mod_perl took out of %ENV upon startup and it > seems

Re: how to use mod_perl sections with mod_jk?

2006-08-02 Thread robert
} this essentially puts back what mod_perl took out of %ENV upon startup and it seems to remain in %ENV across all Perl Sections. I have not seen any example where PassEnv can be used instead of the above approach. --- http://perl.apache.org/docs/1.0/guide/config.html#Apache_Conf

Re: how to use mod_perl sections with mod_jk?

2006-08-01 Thread Robert Nicholson
So can you or somebody else post a complete httpd.conf that makes use of $PerlConfig then? On Aug 1, 2006, at 2:24 PM, Andreas J. Koenig wrote: On Tue, 1 Aug 2006 13:56:31 -0500, [EMAIL PROTECTED] said: That resulted in errors at least in my case. You did read that I said you need SVN r

Re: how to use mod_perl sections with mod_jk?

2006-08-01 Thread Andreas J. Koenig
> On Tue, 1 Aug 2006 13:56:31 -0500, [EMAIL PROTECTED] said: > That resulted in errors at least in my case. You did read that I said you need SVN recent for apache2? -- andreas

Re: how to use mod_perl sections with mod_jk?

2006-08-01 Thread robert
Well I did try to put my entire configuration and it was producing errors so now I'm liberally using Perl Sections and I'm going to try to use $PerlConfig to solve my mod_jk problem. if I've got three perl sections and I use perlconfig on the second one will everything "join

Re: how to use mod_perl sections with mod_jk?

2006-08-01 Thread Andreas J. Koenig
> On Tue, 1 Aug 2006 11:06:15 -0500, [EMAIL PROTECTED] said: > Just exactly how does $PerlConfig work? > Can I put my entire configuration in a here document using $PerlConfig? Yes. > What are the limitations with $PerlConfig? Try it out. The Apache::PerlSections manpage is a bit te

Re: how to use mod_perl sections with mod_jk?

2006-08-01 Thread robert
Just exactly how does $PerlConfig work? Can I put my entire configuration in a here document using $PerlConfig? What are the limitations with $PerlConfig? Quoting Robert Nicholson <[EMAIL PROTECTED]>: > I found a small discussion on $PerlConfig but where is the > documentation for this? > >

Re: how to use mod_perl sections with mod_jk?

2006-08-01 Thread Robert Nicholson
I found a small discussion on $PerlConfig but where is the documentation for this? For instance I don't know how it interacts with other Perl section syntax within the same Perl section. But are there limitations with using regular Perl section syntax with other modules directives or shou

Re: how to use mod_perl sections with mod_jk?

2006-07-31 Thread Andreas J. Koenig
> On Mon, 31 Jul 2006 23:00:33 -0500, Robert Nicholson <[EMAIL PROTECTED]> > said: > So I'm trying to make a great deal of my httpd.conf dynamic based > primarily on hostname etc. > I have most of it working but I've found that at least in my case I > cannot use mod_jk directives

how to use mod_perl sections with mod_jk?

2006-07-31 Thread Robert Nicholson
So I'm trying to make a great deal of my httpd.conf dynamic based primarily on hostname etc. I have most of it working but I've found that at least in my case I cannot use mod_jk directives in a perl section. Q. Should I be able to use mod_jk directives in a perl section? push @JkWorkerPr

Re: Problem with perl sections + @Include + Options statement

2006-03-13 Thread Torsten Foertsch
On Monday 13 March 2006 18:45, Bjørn Erik Jacobsen wrote: > Syntax error on line 233 of /data/apps/apache2/conf/httpd.conf: > $parms->add_config() has failed: Option Indexes not allowed here at > /usr/local/lib/perl5/site_perl/5.8.7/i386-freebsd/Apache2/PerlSections > .pm line 203.\n Is this Apach

Problem with perl sections + @Include + Options statement

2006-03-13 Thread Bjørn Erik Jacobsen
Hello, I seem to have a rather strange problem when using Perl sections in httpd.conf to load extra config files. Including files the normal way works fine, but when including the same file using @Include in a Perl section, it chokes on the "Options ..." keyword (see included error mes

Re: PerlAddVar in sections

2005-10-15 Thread Randal L. Schwartz
> "Risanecek" == Risanecek <[EMAIL PROTECTED]> writes: Risanecek> How do I write these right? Especially the PerlAddVar is Risanecek> driving me crazy. I assume it should go much easier now to Risanecek> set some Perl variables!? They aren't really "perl" variables, but rather dir_config th

PerlAddVar in sections

2005-10-15 Thread Risanecek
Hi, I'm fascinated by possibilities sections offer. I'm in the process of converting some VirtualHost blocks to flavour because there is much redundancy in them and I thought I'd do it with mod_define. Bah! However, I do have some trouble to get the syntax right for the PerlAd

Re: [mp2] Perl Sections in .htaccess files leak memory

2004-09-08 Thread Philippe M. Chiasson
that mod_perl's perl sections are *always* run in the pconf pool, rather than running in the request pool as would be normal for .htaccess files. Consequently, all directive parsing and config merging will use the pconf pool, effectively resulting in a permanent expansion of that pool. Hrm, that&#

[mp2] ANN: possibly useful debugging tool for Perl Sections

2004-08-30 Thread Rici Lake
While trying to debug an issue with a section in mod_perl2, I noticed that these sections are not shown in mod_info's output. I also ran into some issues in mod_info itself. In case these tools are useful to someone else, I have placed the new improved mod_info.c and a patch for mod

[mp2] Perl Sections in .htaccess files leak memory

2004-08-30 Thread Rici Lake
were perfectly stable in memory consumption. Then I do the same thing with a section in the .htaccess file. 100,000 requests later my 12 processes had grown from 6.5M to 25.5M My analysis of this is that mod_perl's perl sections are *always* run in the pconf pool, rather than running i

Re: mp guide: sections -> leaks

2004-05-04 Thread Stas Bekman
the server size. i agree 1M is bizarre though. In which case this should probably mention: +Also, be aware that sections can also cause leaks during +graceful restarts. See the (sub)thread: +http://aspn.activestate.com/ASPN/Mail/Message/modperl/304620 "when running some perl code"? as i

Re: mp guide: sections -> leaks

2004-05-04 Thread Brad Bowman
nce you'll be growing the server size. i agree 1M is bizarre > >>though. > > In which case this should probably mention: > > > +Also, be aware that sections can also cause leaks during > > +graceful restarts. See the (sub)thread: > > +http://aspn.activest

Re: mp guide: sections -> leaks

2004-05-04 Thread Stas Bekman
Brad Bowman wrote: Hello, I've had problems with sections causing leaks with graceful restart, at least with some versions/setups of mod_perl. I thought the problem should be noted in the guide. A patch is attached for: http://perl.apache.org/docs/1.0/guide/troubleshooting.pod.orig I no l

mp guide: sections -> leaks

2004-05-04 Thread Brad Bowman
Hello, I've had problems with sections causing leaks with graceful restart, at least with some versions/setups of mod_perl. I thought the problem should be noted in the guide. A patch is attached for: http://perl.apache.org/docs/1.0/guide/troubleshooting.pod.orig I no longer have my test

MP2: how to do multiple "PerlSetVar" from with sections?

2004-04-11 Thread Will Trillich
has anyone here been able to do multiple directives (such as three or more "PerlSetVar") via sections, from inside the %VirtualHost{$NameVirtualHost} hash? we haven't been able to figure it out: here are the four ways we figured might work; but each of them generates a "Per

sections: "*:80 has no VirtualHosts" error

2004-04-11 Thread Will Trillich
> On Mon, 2004-04-05 at 12:14 -0500, Will Trillich wrote: > > okay. we're trying to use to configure virtual hosts > > -- here's Data::Dumper showing the %VirtualHost hash: %VirtualHost = ( '*:80' => [ { #[snip] 'ServerName' => 'one', #[snip] }, { #[snip] 'ServerName' =>

Re: sections: "*:80 has no VirtualHosts" error

2004-04-07 Thread Will Trillich
On Tue, Apr 06, 2004 at 12:10:08PM -0700, Philippe M. Chiasson wrote: > On Mon, 2004-04-05 at 12:14 -0500, Will Trillich wrote: > > okay. we're trying to use to configure virtual hosts -- here's > > Data::Dumper showing the %VirtualHost hash: > > At a quick glance, you most certainly must have me

Re: sections: "*:80 has no VirtualHosts" error

2004-04-06 Thread Philippe M. Chiasson
On Mon, 2004-04-05 at 12:14 -0500, Will Trillich wrote: > okay. we're trying to use to configure virtual hosts -- here's > Data::Dumper showing the %VirtualHost hash: At a quick glance, you most certainly must have meant: %VirtualHost = ( [...] ); instead of %VirtualHost = { [...] ); > %Virtu

sections: "*:80 has no VirtualHosts" error

2004-04-05 Thread Will Trillich
okay. we're trying to use to configure virtual hosts -- here's Data::Dumper showing the %VirtualHost hash: %VirtualHost = { '*:80' => [ { 'PerlSetVar' => [ 'SiteName', 'one' ], 'Directory' => { '/var/www/one' => { 'Options' => [

RE: perl sections in windows and linux

2004-03-27 Thread "SUCH SANMARTÍN, GERARD"
with 1.99_12 then, or if this solution wouldn't be necessary with a make test well done ... -Original Message- From: Stas Bekman To: SUCH SANMARTÍN, GERARD Cc: '[EMAIL PROTECTED]' Sent: 3/27/2004 3:07 AM Subject: Re: perl sections in windows and linux SUCH SANMARTÍN,

Re: perl sections in windows and linux

2004-03-26 Thread Stas Bekman
SUCH SANMARTÍN, GERARD wrote: Hello after some time, i have had my archive.pl configuring apache2 all this time working perfectly. But today i have tried the same in my linux and i get that the same orders that worked on windows (xp) now do not work in my linux (suse 9.0). What can be the problem?

perl sections in windows and linux

2004-03-26 Thread "SUCH SANMARTÍN, GERARD"
Hello after some time, i have had my archive.pl configuring apache2 all this time working perfectly. But today i have tried the same in my linux and i get that the same orders that worked on windows (xp) now do not work in my linux (suse 9.0). What can be the problem? Here is the code: ... my $b_c

RE: Sections

2004-02-10 Thread Philippe M. Chiasson
e are many things not quite right with your approach. > > if ( $ENV{REMOTE_ADDR} = '192.168.0.24') { you must have meant if ( $ENV{REMOTE_ADDR} == '192.168.0.24') { But more importantly, sections control configuration at startup time, not request time. So your check fo

RE: Sections

2004-02-10 Thread Garth Webb
PerlAddVar => {ntdomain => "DOMAIN PDC BDC",}, > PerlSetVar => {ntlmdebug => 1,}, > }; There are two problems here. One is that you use '=' for your comparison rather than '==' so this condition will always be t

RE: Sections

2004-02-10 Thread Dooley, Michael
CORRECTION: ERROR: [Tue Feb 10 08:26:06 2004] [error] Bad/Missing NTLM/Basic Authorization Header for / [Tue Feb 10 08:26:06 2004] [error] No PDC and no fallbackdomain given for domain DOMAIN if ( $ENV{REMOTE_ADDR} = '192.168.0.24') { $Location{"/"} = { PerlAuthenHandler

Sections

2004-02-10 Thread Dooley, Michael
Would anyone be able to toss a dog a bone? I have this in my httpd.conf and the server starts up fine, but when I try to access the page it doesn't do any authentication. I also tried it in $DOCUMENT_ROOT/.htaccess and I get a Perl not allowed here. Anyone have any ideas how I can pull this off?

Re: perl sections howto?

2004-01-20 Thread petersm
Stas Bekman <[EMAIL PROTECTED]> wrote > Ged Haywood wrote: > > >>How would they know that they aren't being answered because they posted > >>the question or the followup the way they do it 100 times a day? > > > > By reading > > > > http://perl.apache.org/maillist/email-etiquette.html#Replying_

Re: perl sections howto?

2004-01-20 Thread Stas Bekman
Ged Haywood wrote: How would they know that they aren't being answered because they posted the question or the followup the way they do it 100 times a day? By reading http://perl.apache.org/maillist/email-etiquette.html#Replying_to_posts How would they know that they aren't being answered becau

Re: perl sections howto?

2004-01-20 Thread gerard uolaquetalestem
Maybe this time ... Stas i send you a copy with another mail, that is not in the list so i can't send (i've proved) to [EMAIL PROTECTED] I'm doing tests, these are my results: - Without a section in httpd.conf, most of sites i

Re: perl sections howto?

2004-01-20 Thread "SUCH SANMARTÍN, GERARD"
I resend the mail, as mixmail.com is not the best free mail out there (since was bought by ya.com it's a disaster) now i send from my mail-job, i wish mails will be better. I'm doing tests, these are my results: - Without a sect

Re: perl sections howto?

2004-01-20 Thread Ged Haywood
Hi Stas, On Tue, 20 Jan 2004, Stas Bekman wrote: > How would they know that they aren't being answered because they posted > the question or the followup the way they do it 100 times a day? By reading http://perl.apache.org/maillist/email-etiquette.html#Replying_to_posts 73, Ged. -- Reporti

Re: perl sections howto?

2004-01-20 Thread Stas Bekman
Ged Haywood wrote: what would it take for people to play nice on this list and truncate those silly quote-the-whole-thread at the bottom mess/waste? Just don't answer them. You are being funny, Ged. How would they know that they aren't being answered because they posted the question or the fol

Re: perl sections howto?

2004-01-20 Thread Ged Haywood
Hi Stas, On Tue, 20 Jan 2004, Stas Bekman wrote: > what would it take for people to play nice on this list and truncate those > silly quote-the-whole-thread at the bottom mess/waste? Just don't answer them. 73, Ged. -- Reporting bugs: http://perl.apache.org/bugs/ Mail list info: http://per

Re: perl sections howto?

2004-01-20 Thread Stas Bekman
;t trigger that load of Apache::PerlSections (Which happen automatically on ) their config will be ignored, no? Philippe, what's the current state of things with perl section namespaces, when people want to add config from perl, rather than sections? Should they do something like: my $f

Re: perl sections howto?

2004-01-20 Thread Stas Bekman
what would it take for people to play nice on this list and truncate those silly quote-the-whole-thread at the bottom mess/waste? :( Think about those people who are going to reuse the archives. And it can be you at some point. Please truncate! Thanks. __

RE: perl sections howto (n)

2004-01-20 Thread gerard uolaquetalestem
I'm doing tests, these are my results: - Without a section in httpd.conf, most of sites i have (in localhost) do not work (message: Forbidden), but there is one that yes it does. This site is different from all the others, it doesn'

Re: perl sections howto? (bug?)

2004-01-20 Thread Stas Bekman
gerard uolaquetalestem wrote: I've tested what you've said (Stas) and ... it worked!! yes, the "commas" were necessary, Good ;) s/commas/quotes/ __ Stas BekmanJAm_pH --> Just Another mod_perl Hacker http://stason.org/

Re: Re: perl sections howto? (no bug)

2004-01-20 Thread gerard uolaquetalestem
Forget last mail, it's false (and i still have not found the solution), sorry for last mail then :) - Ya.com ADSL:¡PROMOCIÓN! Router 3Com Wireless 11g + 1 Mes + Alta ¡Gratis! http://acceso.ya.com/adsl/256router/ No te pierdas tu futuro... está en nuestro http://rappelweb.mujeractual.com/ti

Re: perl sections howto? (bug?)

2004-01-20 Thread gerard uolaquetalestem
I've tested what you've said (Stas) and ... it worked!! yes, the "commas" were necessary, okay, then i have emotionated myself and i have taken all the sections to my .pl archive and ... it has not worked!!! arg!! uggg!!! But after spending my evening (another d

RE: perl sections howto?

2004-01-20 Thread Philippe M. Chiasson
ll most likely be deprecated as well. > thanks > Eric > > > > > -Original Message- > > From: Philippe M. Chiasson [mailto:[EMAIL PROTECTED] > > Sent: Tuesday, January 20, 2004 1:11 PM > > To: [EMAIL PROTECTED] > > Cc: [EMAIL PROTECTED] >

RE: perl sections howto?

2004-01-20 Thread Eric J. Hansen
ED] > Sent: Tuesday, January 20, 2004 1:11 PM > To: [EMAIL PROTECTED] > Cc: [EMAIL PROTECTED] > Subject: Re: perl sections howto? > > > On Sat, 2004-01-17 at 15:55, Stas Bekman wrote: > > gerard uolaquetalestem wrote: > > > You were right, now i have

Re: perl sections howto?

2004-01-20 Thread Philippe M. Chiasson
idea what %main::Location is. It needs to be in > the special Apache::ReadConfig namespace. like: > >$Apache::ReadConfig::Location{ > > though I think Philippe has changed things recently and I'm not sure whether > the above will work. Yes, this is still

Re: Re (3): perl sections howto?

2004-01-19 Thread Stas Bekman
gerard uolaquetalestem wrote: [...] Neither, let's look for add_config in search label ... i find! (http://perl.apache.org/docs/2.0/api/Apache/RequestUtil.html#C_add_config_) [...] Then, what object have i to use?? RequestUtil or ServerUtil? Apache->server->add_config() as I've suggested in the oth

Re: perl sections howto?

2004-01-19 Thread Stas Bekman
gerard uolaquetalestem wrote: But, Gerard, this should work for sure: use Apache::ServerUtil (); my $config = < $Location{'~ .*log$'} = { SetHandler => "perl-script", PerlResponseHandler => "Blogum::UserLog", PerlOptions => "+ParseHeaders", Allow => "from all",

Re: Re: perl sections howto?

2004-01-19 Thread gerard uolaquetalestem
>But, Gerard, this should work for sure: >use Apache::ServerUtil (); >my $config = < >$Location{'~ .*log$'} = { > SetHandler => "perl-script", > PerlResponseHandler => "Blogum::UserLog", > PerlOptions => "+ParseHeaders", > Allow => "from all", > }; > >EOI >Apache->ser

Re (3): perl sections howto?

2004-01-19 Thread gerard uolaquetalestem
Hello again, these are my results about the discussion: - First, the obvious, the last problem about $Directory{'f:/projectes/sites/blogum.org'} = { PerlHeaderParserHandler => "module", Options => { All => "-Indexes", },

Re: Re (2): perl sections howto?

2004-01-17 Thread Stas Bekman
gerard uolaquetalestem wrote: I have also found another problem with perl sections httpd.conf configuration. I had the directives working on, but the translation does not do a specific thing: $Directory{'f:/projectes/sites/blogum.org'} = { PerlHeaderParserHandler

Re: perl sections howto?

2004-01-17 Thread Stas Bekman
to work? It has no idea what %main::Location is. It needs to be in the special Apache::ReadConfig namespace. like: $Apache::ReadConfig::Location{ though I think Philippe has changed things recently and I'm not sure whether the above will work. Philippe, what's the current state

Re (2): perl sections howto?

2004-01-17 Thread gerard uolaquetalestem
I have also found another problem with perl sections httpd.conf configuration. I had the directives working on, but the translation does not do a specific thing: $Directory{'f:/projectes/sites/blogum.org'} = { PerlHeaderParserHandler => "module", Optio

Re: Re: perl sections howto?

2004-01-17 Thread gerard uolaquetalestem
You were right, now i have this that works PerlModule Apache2 --- $Location{'~ .*log$'} = { SetHandler => "perl-script", PerlResponseHandler => "Blogum::UserLog", PerlOptions => "+ParseHeaders", Allow => "from all", };

Re: perl sections howto?

2004-01-16 Thread Stas Bekman
gerard uolaquetalestem wrote: (I have sent this mail from another address and it has not be received, so i re-send again) Once i have installed the last windows version of modperl2, i try to transcript some apache code of my httpd.conf into perl sections. I have this block in my httpd.conf (i

perl sections howto?

2004-01-16 Thread gerard uolaquetalestem
(I have sent this mail from another address and it has not be received, so i re-send again) Once i have installed the last windows version of modperl2, i try to transcript some apache code of my httpd.conf into perl sections. I have this block in my httpd.conf (i post two times

Re: Problems with sections and with Locationmatch directive

2003-11-21 Thread Stas Bekman
SUCH SANMARTÍN, GERARD wrote: Hello again. I'm trying to put in sections my httpd.conf relevant parts. But i have problems: May I ask why do you use an old non-release version? Please either upgrade to 1.99_11 or use the latest cvs. In httpd.conf simply putting does not work. I get no e

Problems with sections and with Locationmatch directive

2003-11-21 Thread "SUCH SANMARTÍN, GERARD"
Hello again. I'm trying to put in sections my httpd.conf relevant parts. But i have problems: In httpd.conf simply putting does not work. I get no errors in error.log and i get this message [error] failes to resolve handler 'Apache::PerlSection' Syntax error on line 378 of C: