You are viewing a plain text version of this content. The canonical link for it is here.
Posted to test-dev@httpd.apache.org by ru...@sdwim.org on 2003/11/28 08:14:54 UTC
RE: [Patch] Handle RedHat style Include conf.d/*.conf defaultconfiguration
-----Original Message-----
From: Philippe M. Chiasson [mailto:gozer@cpan.org]
Sent: Monday, November 24, 2003 3:54 PM
To: test-dev@httpd.apache.org
Subject: [Patch] Handle RedHat style Include conf.d/*.conf
defaultconfiguration
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/TestConfigPar
se.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||$$++&&red
o}'