On Sat, 20 Apr 2002, Randy Kobes wrote:
> Hi,
> I was having problems on Win32 when building mod_perl-2 (with
> the latest cvs modperl-2/httpd-2 sources) with the generated
> t/conf/httpd.conf - some needed modules weren't being loaded (eg,
> log_config_module, for the TransferLog directive), and also the
> file specifying the TypesConfig directive was getting mangled
> when substituting for @ServerRoot@. The following diff fixes
> those problems (this is on ActivePerl 631, with WinXP).
Actually, here's a simpler version:
=====================================================================
Index: Apache-Test/lib/Apache/TestConfigParse.pm
===================================================================
RCS file:
/home/cvspublic/httpd-test/perl-framework/Apache-Test/lib/Apache/TestConfigParse.pm,v
retrieving revision 1.22
diff -u -r1.22 TestConfigParse.pm
--- Apache-Test/lib/Apache/TestConfigParse.pm 7 Apr 2002 04:18:02 -0000 1.22
+++ Apache-Test/lib/Apache/TestConfigParse.pm 20 Apr 2002 05:28:52 -0000
@@ -47,6 +47,8 @@
sub server_file_rel2abs {
my($self, $file, $base) = @_;
+ return catfile $self->{httpd_basedir}, $file if (WIN32);
+
$base ||= $self->{inherit_config}->{ServerRoot};
unless ($base) {
==================================================================
best regards,
randy
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]