Re: Fw: Apache2::ReadConfig and RewriteRule

Re: Fw: Apache2::ReadConfig and RewriteRule

am 01.12.2010 04:01:54 von Mithun Bhattacharya

--0-1343392067-1291172514=:34006
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: quoted-printable

Thanks - yes I am aware of add_config but I assumed it was the lazy thing t=
o do !! =0ACan 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 mod=
perl2 using Apache2::ReadConfig . =0A- Mithun From: T=
orsten Förtsch =0ATo: modperl@perl.apache.org; =
Mithun Bhattacharya =0ACc: =0ASent: Tuesday, November 30,=
2010 7:19:27 AM=0ASubject: Re: Fw: Apache::ReadConfig and RewriteRule=0A=
The only thing I can answer here is ${r|s}->add_config excepts a list=
of =0Astrings. You can concatenate these strings in mind and think of that=
file as =0Abeing included in httpd.conf. That means you can even writ=
e $s->add_config([=0A '',=0A 'SetHandler serv=
er-status',=0A '
',=0A ]); Similarly it should be possib=
le to add those 4 lines you mentioned. But that =0Ais for modperl2. Apache:=
:ReadConfig smells of modperl1.
--0-1343392067-1291172514=:34006
Content-Type: text/html; charset=iso-8859-1
Content-Transfer-Encoding: quoted-printable

ce, sans-serif;font-size:10pt">
Thanks - yes I am aware of add_co=
nfig but I assumed it was the lazy thing to do !!
e=3D"color: rgb(26, 26, 26); font-size: 13.3333px; font-family: Courier New=
,courier,monaco,monospace,sans-serif; background-color: transparent; font-s=
tyle: normal;">
font-size: 13.3333px; font-family: Courier New,courier,monaco,monospace,sa=
ns-serif; background-color: transparent; font-style: normal;">Can som=
eone confirm that add_config is the recommended way to go (assuming Apache2=
::ReadConfig isn't capable of handling all possible Apache configurations) =
?
ont-family: Courier New,courier,monaco,monospace,sans-serif; background-col=
or: transparent; font-style: normal;">
style=3D"color: rgb(26, 26, 26); font-size: 13.3333px; font-family: Courie=
r New,courier,monaco,monospace,sans-serif; background-color: transparent; f=
ont-style: normal;">Apologies for the typo - I am using it in modperl=
2 using Apache2::ReadConfig .



- Mithun
=
o,monospace,sans-serif;">
mes new roman,new york,times,serif;">
eadonly=3D"true" style=3D"border: 1px solid rgb(204, 204, 204); line-height=
: 0pt; font-size: 0pt; margin-top: 5px; margin-bottom: 5px; font-family: Ar=
ial;" class=3D"hr" contenteditable=3D"false">
eight: bold;">From: Torsten Förtsch <torsten.foertsch@gmx.n=
et>
To: modperl@perl=
..apache.org; Mithun Bhattacharya <inzoik@yahoo.com>
=3D"font-weight:
bold;">Cc:

Sent: n> Tuesday, November 30, 2010 7:19:27 AM
ht: bold;">Subject: Re: Fw: Apache::ReadConfig and RewriteRule r>

=0A
The only thing I can answer here is ${r|s}->add_con=
fig excepts a list of
strings. You can concatenate these strings in min=
d and think of that file as
being included in httpd.conf.

That m=
eans you can even write

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

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

=

--0-1343392067-1291172514=:34006--