diff options
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> |