Diff for /doc/loncapafiles/webserver.piml between versions 1.1 and 1.7

version 1.1, 2002/01/29 10:32:44 version 1.7, 2002/02/06 19:48:27
Line 37  http://www.lon-capa.org/ Line 37  http://www.lon-capa.org/
   
 <piml>  <piml>
 <targetroot>/</targetroot>  <targetroot>/</targetroot>
   <specialnotices>
   <specialnotice>
   </specialnotice>
   </specialnotices>
 <files>  <files>
 <file>  <file>
 <target dist='default'>/etc/httpd/conf/httpd.conf</target>  <target dist='default'>/etc/httpd/conf/httpd.conf</target>
Line 50  unless (-e "<TARGET />") { Line 54  unless (-e "<TARGET />") {
  'software package';   'software package';
 }  }
 else {  else {
     $flag=0;
     open IN, "&lt;<TARGET />";
     while (&lt;IN&gt;) { if (/^\s*Include\s+conf\/srm.conf/) { $flag=1; } }
     close IN;
     unless ($flag==1) {
  open OUT,"&gt;&gt;<TARGET />";   open OUT,"&gt;&gt;<TARGET />";
  print OUT 'Include srm.conf'."\n";   print OUT 'Include conf/srm.conf'."\n";
  print OUT 'Include access.conf'."\n";  
  close OUT;   close OUT;
     }
     $flag=0;
     open IN, "&lt;<TARGET />";
     while (&lt;IN&gt;) { if (/^\s*Include\s+conf\/access.conf/) { $flag=1; } }
     close IN;
     unless ($flag==1) {
    open OUT,"&gt;&gt;<TARGET />";
    print OUT 'Include conf/access.conf'."\n";
    close OUT;
     }
     $flag=0;
     my $eflag=0;
     open IN, "&lt;<TARGET />";
     while (&lt;IN&gt;) { 
       if (/^\s*Include\s+conf\/loncapa.conf/) {
         $flag=1; 
       }
     }
     close IN;
     unless ($flag==1) {
    open OUT,"&gt;&gt;<TARGET />";
    print OUT 'Include conf/loncapa.conf'."\n";
    close OUT;
     }
 }  }
 </perlscript>  </perlscript>
 </file>  </file>
Line 61  else { Line 93  else {
 <target dist='default'>/etc/httpd/conf/access.conf</target>  <target dist='default'>/etc/httpd/conf/access.conf</target>
 <note>This may or may not exist on a system depending on the version of  <note>This may or may not exist on a system depending on the version of
 Apache</note>  Apache</note>
 <status>unverified</status>  
 <dependencies dist='default'>  <dependencies dist='default'>
 /etc/httpd/conf/access.conf  /etc/httpd/conf/access.conf
 </dependencies>  </dependencies>
 <perlscript mode='fg'>  <perlscript mode='fg'>
   unless (-e "<TARGET />") {
    print &lt;&lt;END;
   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 <TARGET />
   For backwards compatibility,
   <TARGET /> is being generated.
   END
   }
   my $flag=0;
   open IN, "&lt;<TARGET />";
   while (&lt;IN&gt;) { if (/^\s*Include\s+conf\/loncapa.conf/) { $flag=1; } }
   close IN;
   unless ($flag==1) {
 open OUT,"&gt;&gt;<TARGET />";  open OUT,"&gt;&gt;<TARGET />";
 print OUT 'Include loncapa.conf'."\n";  print OUT 'Include conf/loncapa.conf'."\n";
 close OUT;  close OUT;
   }
 </perlscript>  </perlscript>
 </file>  </file>
 <file>  <file>
 <target dist='default'>/etc/httpd/conf/srm.conf</target>  <target dist='default'>/etc/httpd/conf/srm.conf</target>
 <note>This may or may not exist on a system depending on the version of  <note>This may or may not exist on a system depending on the version of
 Apache</note>  Apache</note>
 <status>unverified</status>  
 <dependencies dist='default'>  <dependencies dist='default'>
 /etc/httpd/conf/srm.conf  /etc/httpd/conf/srm.conf
 </dependencies>  </dependencies>
 <perlscript mode='fg'>  <perlscript mode='fg'>
   unless (-e "<TARGET />") {
    print &lt;&lt;END;
   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 <TARGET />
   For backwards compatibility,
   <TARGET /> is being generated.
   END
   }
   my $flag=0;
   open IN, "&lt;<TARGET />";
   while (&lt;IN&gt;) { if (/^\s*Include\s+conf\/loncapa.conf/) { $flag=1; } }
   close IN;
   unless ($flag==1) {
 open OUT,"&gt;&gt;<TARGET />";  open OUT,"&gt;&gt;<TARGET />";
 print OUT 'Include loncapa.conf'."\n";  print OUT 'Include conf/loncapa.conf'."\n";
 close OUT;  close OUT;
   }
 </perlscript>  </perlscript>
 </file>  </file>
 </files>  </files>

Removed from v.1.1  
changed lines
  Added in v.1.7


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>