};
---
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
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
)
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
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
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
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
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
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
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
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
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
>&
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
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
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
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:
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
is "normal", and what can I do so that the code in
sections is only executed once in the parent process?
Thanks,
ER
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
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
> 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_/;
> > /(.*)=(.*)/;
>
> 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
}
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
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
> 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
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
> 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
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?
>
>
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
> 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
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
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
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
> "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
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
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
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
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
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
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
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
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
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
> 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' =>
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
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
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' => [
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,
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?
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
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
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
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
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?
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_
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
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
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
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
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
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
;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
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.
__
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'
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/
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
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
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]
>
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
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
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
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",
>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
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",
},
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
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
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
You were right, now i have this that works
PerlModule Apache2
---
$Location{'~ .*log$'} = {
SetHandler => "perl-script",
PerlResponseHandler => "Blogum::UserLog",
PerlOptions => "+ParseHeaders",
Allow => "from all",
};
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
(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
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
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:
80 matches
Mail list logo