anchor.diff:  with lib;
   
   let
  +
  +  httpd = serverInfo.serverConfig.package;
  +
  +  version24 = !versionOlder httpd.version "2.4";
  +
  +  allGranted = if version24 then ''
  +    Require all granted
  +  '' else ''
  +    Order allow,deny
  +    Allow from all
  +  '';
   
     mediawikiConfig = pkgs.writeText "LocalSettings.php"
       ''
  
positive.code:       ''}
  
        <Directory ${mediawikiRoot}>
            Order allow,deny
            Allow from all
            DirectoryIndex index.php
        </Directory>
  
  
negative.code:         Alias ${config.urlPrefix}/images ${config.uploadDir}
  
          <Directory ${config.uploadDir}>
              ${allGranted}
              Options -Indexes
          </Directory>
        ''}
  