diff options
author | Frédéric Buclin <LpSolit@gmail.com> | 2015-03-11 17:49:24 +0100 |
---|---|---|
committer | Frédéric Buclin <LpSolit@gmail.com> | 2015-03-11 17:49:24 +0100 |
commit | b70bdeb2ed17a03e1a24b37cb0a61d66d868522d (patch) | |
tree | f123f4b0abe8f9a585ab7ac37512febffb6e2a97 | |
parent | 64ad8e38d4e984b216a67d22f147921d1efaaa60 (diff) | |
download | bugzilla-b70bdeb2ed17a03e1a24b37cb0a61d66d868522d.tar.gz bugzilla-b70bdeb2ed17a03e1a24b37cb0a61d66d868522d.tar.xz |
Bug 1138463: mod_perl does not support Apache 2.4 directives
r=dkl a=glob
-rw-r--r-- | .htaccess | 7 | ||||
-rw-r--r-- | Bugzilla/Install/Filesystem.pm | 59 |
2 files changed, 56 insertions, 10 deletions
@@ -5,7 +5,12 @@ Deny from all </IfVersion> <IfVersion >= 2.4> - Require all denied + <IfModule mod_perl.c> + Deny from all + </IfModule> + <IfModule !mod_perl.c> + Require all denied + </IfModule> </IfVersion> </IfModule> <IfModule !mod_version.c> diff --git a/Bugzilla/Install/Filesystem.pm b/Bugzilla/Install/Filesystem.pm index 5f5677460..d2d342a77 100644 --- a/Bugzilla/Install/Filesystem.pm +++ b/Bugzilla/Install/Filesystem.pm @@ -52,7 +52,12 @@ use constant HT_DEFAULT_DENY => <<EOT; Deny from all </IfVersion> <IfVersion >= 2.4> - Require all denied + <IfModule mod_perl.c> + Deny from all + </IfModule> + <IfModule !mod_perl.c> + Require all denied + </IfModule> </IfVersion> </IfModule> <IfModule !mod_version.c> @@ -355,7 +360,12 @@ EOT Allow from all </IfVersion> <IfVersion >= 2.4> - Require all granted + <IfModule mod_perl.c> + Allow from all + </IfModule> + <IfModule !mod_perl.c> + Require all granted + </IfModule> </IfVersion> </IfModule> <IfModule !mod_version.c> @@ -369,7 +379,12 @@ EOT Deny from all </IfVersion> <IfVersion >= 2.4> - Require all denied + <IfModule mod_perl.c> + Deny from all + </IfModule> + <IfModule !mod_perl.c> + Require all denied + </IfModule> </IfVersion> </IfModule> <IfModule !mod_version.c> @@ -389,8 +404,14 @@ EOT # Deny from all # </IfVersion> # <IfVersion >= 2.4> -# Require ip 127.0.0.1/24 -# Require all denied +# <IfModule mod_perl.c> +# Allow from 127.0.0.1/24 +# Deny from all +# </IfModule> +# <IfModule !mod_perl.c> +# Require ip 127.0.0.1/24 +# Require all denied +# </IfModule> # </IfVersion> # </IfModule> # <IfModule !mod_version.c> @@ -406,7 +427,12 @@ EOT Allow from all </IfVersion> <IfVersion >= 2.4> - Require all granted + <IfModule mod_perl.c> + Allow from all + </IfModule> + <IfModule !mod_perl.c> + Require all granted + </IfModule> </IfVersion> </IfModule> <IfModule !mod_version.c> @@ -420,7 +446,12 @@ EOT Deny from all </IfVersion> <IfVersion >= 2.4> - Require all denied + <IfModule mod_perl.c> + Deny from all + </IfModule> + <IfModule !mod_perl.c> + Require all denied + </IfModule> </IfVersion> </IfModule> <IfModule !mod_version.c> @@ -437,7 +468,12 @@ EOT Allow from all </IfVersion> <IfVersion >= 2.4> - Require all granted + <IfModule mod_perl.c> + Allow from all + </IfModule> + <IfModule !mod_perl.c> + Require all granted + </IfModule> </IfVersion> </IfModule> <IfModule !mod_version.c> @@ -451,7 +487,12 @@ EOT Deny from all </IfVersion> <IfVersion >= 2.4> - Require all denied + <IfModule mod_perl.c> + Deny from all + </IfModule> + <IfModule !mod_perl.c> + Require all denied + </IfModule> </IfVersion> </IfModule> <IfModule !mod_version.c> |