httpd-apreq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stas Bekman <s...@stason.org>
Subject Re: [apreq-2] does not use apr-config --includes
Date Mon, 06 Oct 2003 20:03:32 GMT
Joe Schaefer wrote:

>>The other thing I noticed is that since my httpd is built entirely
>>using  DSO's that the tests failed because the httpd.conf does not
>>load mod_alias.

it doesn't load mod_alias because it either can't find your system-wide 
httpd.conf from which it inherits these settings), or because it doesn't 
include it (which will make a perfect sense if you don't use Alias).

> Stas, does this problem ring any bells?

Yup, Alias is one of the last ones that misses <IfModule > around it, I'll 
shortly commit the inlined fix.

Meanwhile you can fix that by fixing the autogenerated httpd.conf, which 
doesn't use these aliases anyway:

t/TEST -conf
perl -pi -e 's|^Alias.*||' t/conf/httpd.conf
t/TEST



Index: Apache-Test/lib/Apache/TestConfig.pm
===================================================================
RCS file: 
/home/cvs/httpd-test/perl-framework/Apache-Test/lib/Apache/TestConfig.pm,v
retrieving revision 1.175
diff -u -r1.175 TestConfig.pm
--- Apache-Test/lib/Apache/TestConfig.pm        1 Oct 2003 13:45:23 -0000 
  1.175
+++ Apache-Test/lib/Apache/TestConfig.pm        6 Oct 2003 20:00:07 -0000
@@ -1315,10 +1315,12 @@
  EOF
      }

+    print $out "<IfModule mod_alias.c>\n";
      for (keys %aliases) {
          next unless $vars->{$aliases{$_}};
-        print $out "Alias /getfiles-$_ $vars->{$aliases{$_}}\n";
+        print $out "    Alias /getfiles-$_ $vars->{$aliases{$_}}\n";
      }
+    print $out "</IfModule>\n";

      print $out "\n";



__________________________________________________________________
Stas Bekman            JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/     mod_perl Guide ---> http://perl.apache.org
mailto:stas@stason.org http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com


Mime
View raw message