https://bugs.koozali.org/show_bug.cgi?id=13204

            Bug ID: 13204
           Summary: Fix Apache 2.4 directive to control access to
                    /opt/mailstats
    Classification: Contribs
           Product: SME Contribs
           Version: 11.0
          Hardware: ---
                OS: ---
            Status: CONFIRMED
          Severity: normal
          Priority: P3
         Component: smeserver-mailstats
          Assignee: [email protected]
          Reporter: [email protected]
        QA Contact: [email protected]
  Target Milestone: ---

and replace private/public by the ValidFrom property of DB record
Config/httpd-admin 

Current Code is:

  if ($status eq 'enabled') 
  {
        $OUT .="#-------------------------------------------------\n";
        $OUT .="# mailstats settings from smeserver-mailstats\n";
        $OUT .="#-------------------------------------------------\n";
        $OUT .="\n";
        $OUT .= qq(
        # Alias for mailstats
        Alias "/mailstats/js" "/opt/mailstats/js"
        Alias "/mailstats/css" "/opt/mailstats/css"
        Alias "/mailstats" "/opt/mailstats/html"

        <Directory "/opt/mailstats/html">
                Options Indexes FollowSymLinks
                AllowOverride None
                Require all granted
        );
        $OUT .= (($mailstats{access} || 'private' ) eq "public" ) ?  "     
Require all granted": "      Require ip $localAccess $externalSSLAccess";
        $OUT .= qq(
                <FilesMatch .php\$\>
                        SetHandler
"proxy:unix:/var/run/php-fpm/php74.sock|fcgi://localhost"
                </FilesMatch>
        </Directory>

        <Directory "/opt/mailstats/css">
                AllowOverride None
                Require all granted
        </Directory>

        <Directory "/opt/mailstats/js">
                AllowOverride None
                Require all granted
        </Directory>
        );

  }
    else 
    {
      $OUT .= "# mailstats is disabled";
    }
}

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
_______________________________________________
Mail for each SME Contribs bug report
To unsubscribe, e-mail [email protected]
Searchable archive at https://lists.contribs.org/mailman/public/contribteam/

Reply via email to