httpd-test-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From do...@apache.org
Subject cvs commit: httpd-test/perl-framework/Apache-Test/lib/Apache TestConfig.pm
Date Thu, 13 Dec 2001 17:13:03 GMT
dougm       01/12/13 09:13:03

  Modified:    perl-framework/Apache-Test/lib/Apache TestConfig.pm
  Log:
  dont allocate a port for mod_foo_ssl if mod_foo isnt available
  
  Revision  Changes    Path
  1.96      +12 -6     httpd-test/perl-framework/Apache-Test/lib/Apache/TestConfig.pm
  
  Index: TestConfig.pm
  ===================================================================
  RCS file: /home/cvs/httpd-test/perl-framework/Apache-Test/lib/Apache/TestConfig.pm,v
  retrieving revision 1.95
  retrieving revision 1.96
  diff -u -r1.95 -r1.96
  --- TestConfig.pm	2001/12/11 06:23:34	1.95
  +++ TestConfig.pm	2001/12/13 17:13:03	1.96
  @@ -758,15 +758,21 @@
       }
   
       my $vars = $self->{vars};
  +    my $mods = $self->{modules};
  +    my $have_module = "$module.c";
  +    my $ssl_module = $vars->{ssl_module};
   
  -    #if module ends with _ssl it is either the ssl module itself
  -    #or another module that has a port for itself and another
  -    #for itself with SSLEngine On, see mod_echo in extra.conf.in for example
  -    my $have_module = $module =~ /_ssl$/ ?
  -      $vars->{ssl_module} : "$module.c";
  +    #if module ends with _ssl and it is not the module that implements ssl,
  +    #then assume this module is a vhost with SSLEngine On (or similar)
  +    #see mod_echo in extra.conf.in for example
  +    if ($module =~ /^(mod_\w+)_ssl$/ and $have_module ne $ssl_module) {
  +        $have_module = "$1.c"; #e.g. s/mod_echo_ssl.c/mod_echo.c/
  +        return undef unless $mods->{$ssl_module};
  +    }
   
       #don't allocate a port if this module is not configured
  -    if ($module =~ /^mod_/ and not $self->{modules}->{$have_module}) {
  +    #assumes the configuration is inside an <IfModule $have_module>
  +    if ($module =~ /^mod_/ and not $mods->{$have_module}) {
           return undef;
       }
   
  
  
  

Mime
View raw message