anchor.diff:                  ],
       
       NonSSLOpts = [{port, WebPort}],
  +    SSLCertOpts = [{certfile, z_config:get_dirty(ssl_certfile)}, 
  +                   {keyfile, z_config:get_dirty(ssl_keyfile)}],
  +    SSLCertOpts2 = case z_config:get_dirty(ssl_cacertfile) of
  +                       undefined -> SSLCertOpts;
  +                       CACertFile -> [{cacertfile, CACertFile} | SSLCertOpts]
  +                   end,
       SSLOpts = [
           {port, WebPortSSL},
           {ssl, true},  
  -        {ssl_opts, 
  -         [{certfile, z_config:get_dirty(ssl_certfile)}, 
  -          {keyfile, z_config:get_dirty(ssl_keyfile)}]}
  +        {ssl_opts, SSLCertOpts2}
                 ],
   
       IPv4Opts = [{ip, WebIp}], % Listen to the ip address and port for all sites.
  
positive.code:     Dispatcher = {z_sites_dispatcher,
                    {z_sites_dispatcher, start_link, []},
                    permanent, 5000, worker, dynamic},
  
      % Sites supervisor, starts all enabled sites
      SitesSup = {z_sites_manager,
  
negative.code:                 permanent, 5000, worker, dynamic},
                  
      Processes = [
          Ids, Config, PreviewServer, Dispatcher,
          %SmtpServer, SmtpBounceServer, 
          SitesSup
                  ],
  
      % Listen to IP address and Port
  