--- doc/loncapafiles/webserver.piml 2002/01/29 10:32:44 1.1 +++ doc/loncapafiles/webserver.piml 2002/02/02 14:45:40 1.4 @@ -1,7 +1,7 @@ - + -/ +/abc/ + + + + /etc/httpd/conf/httpd.conf @@ -50,10 +54,38 @@ unless (-e "") { 'software package'; } else { + $flag=0; + open IN, "<"; + while (<IN>) { if (/^\s*Include\s+conf\/srm.conf/) { $flag=1; } } + close IN; + unless ($flag==0) { open OUT,">>"; - print OUT 'Include srm.conf'."\n"; - print OUT 'Include access.conf'."\n"; + print OUT 'Include conf/srm.conf'."\n"; close OUT; + } + $flag=0; + open IN, "<"; + while (<IN>) { if (/^\s*Include\s+conf\/access.conf/) { $flag=1; } } + close IN; + unless ($flag==0) { + open OUT,">>"; + print OUT 'Include conf/access.conf'."\n"; + close OUT; + } + $flag=0; + my $eflag=0; + open IN, "<"; + while (<IN>) { + if (/^\s*Include\s+conf\/loncapa.conf/) { + $flag=1; + } + } + close IN; + unless ($flag==0) { + open OUT,">>"; + print OUT 'Include conf/loncapa.conf'."\n"; + close OUT; + } } @@ -61,28 +93,64 @@ else { /etc/httpd/conf/access.conf This may or may not exist on a system depending on the version of Apache -unverified /etc/httpd/conf/access.conf +unless (-e "") { + print <<; +WARNING! access.conf is not currently present on your system. +This is either due to +* you are missing the Apache software package, +* you have a newer version of Apache that does not + ordinarily install an access.conf +* configuration files are installed in a directory location + different than for +For backwards compatibility, + is being generated. +END +} +my $flag=0; +open IN, "<"; +while (<IN>) { if (/^\s*Include\s+conf\/loncapa.conf/) { $flag=1; } } +close IN; +unless ($flag==0) { open OUT,">>"; -print OUT 'Include loncapa.conf'."\n"; +print OUT 'Include conf/loncapa.conf'."\n"; close OUT; +} /etc/httpd/conf/srm.conf This may or may not exist on a system depending on the version of Apache -unverified /etc/httpd/conf/srm.conf +unless (-e "") { + print <<; +WARNING! srm.conf is not currently present on your system. +This is either due to +* you are missing the Apache software package, +* you have a newer version of Apache that does not + ordinarily install an srm.conf +* configuration files are installed in a directory location + different than for +For backwards compatibility, + is being generated. +END +} +my $flag=0; +open IN, "<"; +while (<IN>) { if (/^\s*Include\s+conf\/loncapa.conf/) { $flag=1; } } +close IN; +unless ($flag==0) { open OUT,">>"; -print OUT 'Include loncapa.conf'."\n"; +print OUT 'Include conf/loncapa.conf'."\n"; close OUT; +}