--- loncom/configuration/Configuration.pm 2002/05/04 00:03:29 1.2 +++ loncom/configuration/Configuration.pm 2002/05/16 17:24:06 1.5 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # Configuration file reader # -# $Id: Configuration.pm,v 1.2 2002/05/04 00:03:29 harris41 Exp $ +# $Id: Configuration.pm,v 1.5 2002/05/16 17:24:06 harris41 Exp $ # # # Copyright Michigan State University Board of Trustees @@ -33,7 +33,7 @@ package LONCAPA::Configuration; -$VERSION = sprintf("%d.%02d", q$Revision: 1.2 $ =~ /(\d+)\.(\d+)/); +$VERSION = sprintf("%d.%02d", q$Revision: 1.5 $ =~ /(\d+)\.(\d+)/); use strict; @@ -43,8 +43,8 @@ my $confdir='/etc/httpd/conf/'; sub read_conf { my (@conf_files)=@_; my %perlvar; - foreach my $filename (@conf_files) { - open(CONFIG,'<'.$confdir.$filename) or die("Can't read $filename"); + foreach my $filename (@conf_files,'loncapa_apache.conf') { + open(CONFIG,'<'.$confdir.$filename) or die("Can't read $confdir$filename"); while (my $configline=) { if ($configline =~ /^[^\#]*PerlSetVar/) { my ($unused,$varname,$varvalue)=split(/\s+/,$configline); @@ -82,10 +82,11 @@ trying to support backwards compatibilit =head1 DESCRIPTION -Many different parts of the LON-CAPA software need to read in the machine-specific -configuration information. These included scripts controlling the TCP/IP layer -(e.g. F and F), testing scripts (e.g. test_weblayer.pl and sqltest.pl), -and utility scripts (e.g. clusterstatus.pl and metadata_keywords.pl). +Many different parts of the LON-CAPA software need to read in the +machine-specific configuration information. These included scripts +controlling the TCP/IP layer (e.g. F and F), testing scripts +(e.g. test_weblayer.pl and sqltest.pl), and utility scripts +(e.g. clusterstatus.pl and metadata_keywords.pl). The following methods are available: @@ -104,7 +105,7 @@ have been initialized from the configura in the arguments. If multiple file names define the same hash key, then priority is -given toward the last file name processed. +given toward the B file name processed. =back