diff options
author | jorisdrenth <joris@jorisdrenth.nl> | 2021-04-12 01:22:11 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-12 01:22:11 +0300 |
commit | 308a3465b99a00b05821c2cab4d13fdb4d0b774f (patch) | |
tree | 167a22e9a35a0432e9fdea09539e77560a7ca06a /misc | |
parent | 9bee86a2c6ff2fe314d13b909fefc91ce5ab8c10 (diff) |
Fix for Apache 2.4+ (#17387)
* Fix for Apache 2.4+
* Fix for Apache 2.4+ (update)
Updated as requested by @diosmosis
Diffstat (limited to 'misc')
-rw-r--r-- | misc/cron/.htaccess | 30 |
1 files changed, 26 insertions, 4 deletions
diff --git a/misc/cron/.htaccess b/misc/cron/.htaccess index 0706fc7113..d244c85e1d 100644 --- a/misc/cron/.htaccess +++ b/misc/cron/.htaccess @@ -1,5 +1,27 @@ # Allow direct web access to Web cron -<Files "archive.php"> - Order Allow,Deny - Allow from all -</Files> +<IfModule mod_version.c> + <IfVersion < 2.4> + <Files "archive.php"> + Order Allow,Deny + Allow from all + </Files> + </IfVersion> + <IfVersion >= 2.4> + <Files "archive.php"> + Require all granted + </Files> + </IfVersion> +</IfModule> +<IfModule !mod_version.c> + <IfModule !mod_authz_core.c> + <Files "archive.php"> + Order Allow,Deny + Allow from all + </Files> + </IfModule> + <IfModule mod_authz_core.c> + <Files "archive.php"> + Require all granted + </Files> + </IfModule> +</IfModule> |