Geoffrey Young wrote:
>>>>>Maybe there should be a word of warning added to the Testing document
>>>>>for similar cases (unless I overread it of course ;-)
>>>
>>>
>>>probably.  patches welcome :)
>>
>>
>>Along this lines, I was going to prepare a patch to make this a clearer
>>but I couldn't find where extra.last.conf.in was documented (since I
>>thought this would be a good place to explain what you might put into
>>it). I search perl.apache.org and while there are several mentions of
>>"extra.conf.in" I couldn't find any for "extra.last.conf.in".
> 
> 
> hmm, maybe it isn't documented there, then.  I know I wrote about it in an
> article I did for perl.com

Turns out it was documented, but not as "extra.last.conf.in" but rather
as anything that matches "/\.last\.(conf|pl).in$/". But regardless, here
is a patch that tries to make things a little clearer.

-- 
Michael Peters
Developer
Plus Three, LP

--- testing.pod.orig	2005-07-11 14:07:25.000000000 -0400
+++ testing.pod	2005-07-11 14:07:01.000000000 -0400
@@ -1237,7 +1237,11 @@
 
   /\.last\.(conf|pl).in$/
 
-will be included very last in F<httpd.conf>.
+will be included very last in F<httpd.conf>. This is especially useful 
+if you want to include Apache directives that would need a running Perl
+interpreter (see L<When Does perl Start To Run|docs::2.0::user::handlers::server/When_Does_perl_Start_To_Run>) 
+without conflicting with Apache::Test's use of
+C<L<PerlSwitches|docs::2.0::user::config::config/C_PerlSwitches_>>.
 
 Make sure that you don't try to create F<httpd.conf.in>, it is not
 going to work, since F<httpd.conf> is already generated by
@@ -1284,11 +1288,20 @@
 
 =item *
 
+if the file F<t/conf/extra.last.conf.in> exists, it will be used to
+generate F<t/conf/extra.last.conf> with C<@variable@> substitutions.
+
+=item *
+
 if the file F<t/conf/extra.conf> exists, it will be included by
 F<httpd.conf>.
 
 =item *
 
+if the file F<t/conf/extra.last.conf> exists, it will be included by
+F<httpd.conf> after the F<t/conf/extra.conf> file.
+=item *
+
 if the file F<t/conf/modperl_extra.pl> exists, it will be included by
 F<httpd.conf> as a mod_perl file (PerlRequire).
 

Reply via email to