Thanks - yes I am aware of add_config but I assumed it was the lazy thing to do 
!!


Can someone confirm that add_config is the recommended way to go (assuming 
Apache2::ReadConfig isn't capable of handling all possible Apache 
configurations) ?

Apologies for the typo - I am using it in modperl2 using Apache2::ReadConfig .




- Mithun



From: Torsten Förtsch <torsten.foert...@gmx.net>
To: modperl@perl.apache.org; Mithun Bhattacharya <inz...@yahoo.com>
Cc: 
Sent: Tuesday, November 30, 2010 7:19:27 AM
Subject: Re: Fw: Apache::ReadConfig and RewriteRule


The only thing I can answer here is ${r|s}->add_config excepts a list of 
strings. You can concatenate these strings in mind and think of that file as 
being included in httpd.conf.

That means you can even write

$s->add_config([
    '<Location /fritz>',
      'SetHandler server-status',
    '</Location>',
  ]);

Similarly it should be possible to add those 4 lines you mentioned. But that 
is for modperl2. Apache::ReadConfig smells of modperl1.



      

Reply via email to