httpd-test-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject cvs commit: httpd-test/perl-framework/Apache-Test/lib/Apache TestConfigParse.pm
Date Sat, 09 Aug 2003 02:38:44 GMT
stas        2003/08/08 19:38:44

  Modified:    perl-framework/Apache-Test/lib/Apache TestConfigParse.pm
  Log:
  sometimes people have broken system-wide httpd.conf files,
  which include LoadModule of modules, which are built-in, but
  won't be skipped above if they are found in the modules/
  directory. this usually happens when httpd is built once
  with its modules built as shared objects and then again with
  static ones: the old httpd.conf still has the LoadModule
  directives, even though the modules are now built-in
  so we try to workaround this problem using <IfModule>
  
  Revision  Changes    Path
  1.35      +10 -1     httpd-test/perl-framework/Apache-Test/lib/Apache/TestConfigParse.pm
  
  Index: TestConfigParse.pm
  ===================================================================
  RCS file: /home/cvs/httpd-test/perl-framework/Apache-Test/lib/Apache/TestConfigParse.pm,v
  retrieving revision 1.34
  retrieving revision 1.35
  diff -u -r1.34 -r1.35
  --- TestConfigParse.pm	30 Jul 2003 21:31:12 -0000	1.34
  +++ TestConfigParse.pm	9 Aug 2003 02:38:44 -0000	1.35
  @@ -133,7 +133,16 @@
   
           debug "LoadModule $modname $name";
   
  -        $self->preamble($directive => qq($modname "$file"));
  +        # sometimes people have broken system-wide httpd.conf files,
  +        # which include LoadModule of modules, which are built-in, but
  +        # won't be skipped above if they are found in the modules/
  +        # directory. this usually happens when httpd is built once
  +        # with its modules built as shared objects and then again with
  +        # static ones: the old httpd.conf still has the LoadModule
  +        # directives, even though the modules are now built-in
  +        # so we try to workaround this problem using <IfModule>
  +        $self->preamble(IfModule => "!$name",
  +                        qq{LoadModule $modname "$file"\n});
       }
   }
   
  
  
  

Mime
View raw message