httpd-test-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Philippe M. Chiasson" <go...@cpan.org>
Subject [Patch] Handle RedHat style Include conf.d/*.conf default configuration
Date Mon, 24 Nov 2003 23:54:17 GMT
Apache-Test currently doesn't inherit RedHat style configuration layout.

Include conf.d/*.conf doesn't get expanded proprely, and most modules
are not found/activated.

Following patch glob()es Include directive just in case

Index: Apache-Test/lib/Apache/TestConfigParse.pm
===================================================================
RCS file: /home/cvs/httpd-test/perl-framework/Apache-Test/lib/Apache/TestConfigParse.pm,v
retrieving revision 1.37
diff -u -I$Id: -r1.37 TestConfigParse.pm
--- Apache-Test/lib/Apache/TestConfigParse.pm	10 Nov 2003 17:23:52 -0000	1.37
+++ Apache-Test/lib/Apache/TestConfigParse.pm	24 Nov 2003 23:52:13 -0000
@@ -243,8 +243,10 @@
         (my $directive, $_) = split /\s+/, $_, 2;
 
         if ($directive eq "Include") {
-            my $include = $self->server_file_rel2abs($_);
-            $self->inherit_config_file_or_directory($include);
+            foreach (glob($self->server_file_rel2abs($_))) {
+               $self->inherit_config_file_or_directory($_);
+	       }
         }
 
         #parse what we want

-- 
--------------------------------------------------------------------------------
Philippe M. Chiasson /gozer\@(cpan|ectoplasm)\.org/ 88C3A5A5 (122FF51B/C634E37B)
http://gozer.ectoplasm.org/    F9BF E0C2 480E 7680 1AE5 3631 CB32 A107 88C3 A5A5
Q: It is impossible to make anything foolproof because fools are so ingenious.
perl -e'$$=\${gozer};{$_=unpack(P7,pack(L,$$));/^JAm_pH\n$/&&print||$$++&&redo}'

Mime
View raw message