Fixed: include /path/to/dir
authorHeiko <hs@schlittermann.de>
Wed, 05 Feb 2014 12:49:02 +0100
changeset 2 514fe7b72d65
parent 1 992581cd9e89
child 3 8e064c262aa5
Fixed: include /path/to/dir If the included element is a directory, Apache includes the directory contents.
read-httpd-conf
--- a/read-httpd-conf	Thu Jan 30 15:31:48 2014 +0100
+++ b/read-httpd-conf	Wed Feb 05 12:49:02 2014 +0100
@@ -14,7 +14,7 @@
 
             #print "#$file:$.:$_";
             say "# $. $file INCLUDE $+{file}";
-            read_file($_) foreach (glob $+{file});
+            read_file($_) foreach (glob -d $+{file} ? "$+{file}/*" : $+{file});
             next;
         }
         print;