The line spacing in the private and temporary directory .htaccess files is off:
# 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
There should be a space before the "Turn off all options" line since everything below that is unrelated to everything above.
This is being fixed for Drupal 7 as part of the backport of #1599774: Drupal fails to boot with 503 error and .htaccess protections do not work on Apache 2.4 without mod_access_compat (the issue that led to this in the first place). Here is a fix for Drupal 8.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | 2883821-2.patch | 426 bytes | David_Rothstein |
Comments
Comment #2
David_Rothstein commentedComment #5
longwaveAs trivial as can be.
Comment #6
alexpottAs a task (and not a bug) committed to 8.6.x.
Committed 3bcb50a and pushed to 8.6.x. Thanks!