Re: Fw: Apache2::ReadConfig and RewriteRule

Mithun Bhattacharya <[email protected]>
Newsgroups gmane.comp.apache.mod-perl
Message-ID <[email protected]>
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 <[email protected]>
To: [email protected]; Mithun Bhattacharya <[email protected]>
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.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.