Diff for /loncom/lchttpdlogs between versions 1.1 and 1.2

version 1.1, 2011/11/03 22:32:04 version 1.2, 2013/03/28 15:16:38
Line 124  sub check_httpd_logs { Line 124  sub check_httpd_logs {
     my ($distro,$protocol) = @_;      my ($distro,$protocol) = @_;
     my $text;      my $text;
     my $logpath = '/var/log/httpd';      my $logpath = '/var/log/httpd';
     if ($distro =~ /^(suse|debian|ubuntu)/) {      my $access_log_file = 'access_log';
         $logpath = '/var/log/apache2';       my $error_log_file = 'error_log';
       if ($distro =~ /^(debian|ubuntu)/) {
           $logpath = '/var/log/apache2';
           $access_log_file = 'access.log';
           $error_log_file = 'error.log';
       } elsif ($distro =~ /^suse/) {
           $logpath = '/var/log/apache2';
     } elsif ($distro =~ /^sles(\d+)/) {      } elsif ($distro =~ /^sles(\d+)/) {
         if ($1 >= 10) {          if ($1 >= 10) {
             $logpath = '/var/log/apache2';              $logpath = '/var/log/apache2';
Line 133  sub check_httpd_logs { Line 139  sub check_httpd_logs {
             $logpath = '/var/log/apache';              $logpath = '/var/log/apache';
         }          }
     }      }
     my $access_log_file = 'access_log';  
     my $error_log_file = 'error_log';  
     if ($protocol eq 'https') {      if ($protocol eq 'https') {
         $access_log_file = 'ssl_'.$access_log_file;          $access_log_file = 'ssl_'.$access_log_file;
         $error_log_file = 'ssl_'.$error_log_file;          $error_log_file = 'ssl_'.$error_log_file;

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


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