Skip to content

GitLab

  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in
  • D drupalSite-operator
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 22
    • Issues 22
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
  • Merge requests 6
    • Merge requests 6
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Container Registry
    • Infrastructure Registry
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Code review
    • Issue
    • Repository
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • drupal
  • paas
  • drupalSite-operator
  • Issues
  • #11

Closed
Open
Created Dec 03, 2020 by Vineet Reddy Rajula@ravineetOwner

Drush site-install 'config' dir warning

[error]  Security warning: Couldn't write .htaccess file. Please create a .htaccess file in your ../config/sync directory which contains the following lines: <pre><code># Deny all requests 
from Apache 2.4+.                                                                                                                                                                             
<IfModule mod_authz_core.c>                                                                                                                                                                   
  Require all denied                                                                                                                                                                          
</IfModule>                                                                                                                                                                                   
                                                                                                                                                                                              
# Deny all requests from Apache 2.0-2.2.                                                                                                                                                      
<IfModule !mod_authz_core.c>                                                                                                                                                                  
  Deny from all                                                                                                                                                                               
</IfModule>                                                                                                                                                                                   
                                                                                                                                                                                              
# 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                                                                                                                                      
<Files *>                                                                                                                                                                                     
  # Override the handler again if we're run later in the evaluation list.                                                                                                                     
  SetHandler Drupal_Security_Do_Not_Remove_See_SA_2013_003                                                                                                                                    
</Files>                                                                                                                                                                                      
                                                                                                                                                                                              
# If we know how to do it safely, disable the PHP engine entirely.                                                                                                                            
<IfModule mod_php7.c>                                                                                                                                                                         
  php_flag engine off                                                                                                                                                                         
</IfModule></code></pre> [1.27 sec, 32.41 MB] 

Debug and figure out the warning and check if it relevant to nginx as well

Assignee
Assign to
Time tracking