.htaccess error on local site in docksal I've built a Drupal 8.6.4 website within Acquia Dev Desktop, but moved it into a local Docker/Docksal setup to continue working (haven't used it before) - on a mac, if it matters. Everything seems fine, but for two issues. The first is a bunch of Security warnings in the logs about htaccess, saying to add an htaccess containing some specific code to the "/var/www/config/default" directory, but I don't have this file directory. It's a Docksal set-up: just ~/projects/projectname/docroot set-up on my computer.

The second issue, which I suspect may be related, is that I can't Drush archive-backup --destination=x/x/x.. It always tells me the file permission prevents it, Even if I give full read/write permission on the folder. But I can do it without the --destination added. It just puts it in a temp folder. 

Here's the Error I see - it generates most any time I load an admin page.

    Security warning: Couldn't write .htaccess file. Please create a .htaccess file in your /var/www/config/default directory which contains the following lines:
    # Deny all requests from Apache 2.4+.
    &lt;IfModule mod_authz_core.c&gt;
      Require all denied
    &lt;/IfModule&gt;

    # Deny all requests from Apache 2.0-2.2.
    &lt;IfModule !mod_authz_core.c&gt;
      Deny from all
    &lt;/IfModule&gt;

    # Turn off all options we don't need.
    Options -Indexes -ExecCGI -Includes -MultiViews

    # Set the catch-all handler to prevent scripts from being executed.
    SetHandler Drupal_Security_Do_Not_Remove_See_SA_2006_006
    &lt;Files *&gt;
      # Override the handler again if we're run later in the evaluation list.
      SetHandler Drupal_Security_Do_Not_Remove_See_SA_2013_003
    &lt;/Files&gt;

    # If we know how to do it safely, disable the PHP engine entirely.
    &lt;IfModule mod_php5.c&gt;
      php_flag engine off
    &lt;/IfModule&gt;
There is a directory in the root of the Acquia project, config/default.So, all you need it's make it writable.

or you can  change $config_directories['vcs'] and $config_directories['sync'] in your settings.php to somewhere which will be writable .