Commit b70bdeb2 authored by Frédéric Buclin's avatar Frédéric Buclin

Bug 1138463: mod_perl does not support Apache 2.4 directives

r=dkl a=glob
parent 64ad8e38
......@@ -5,7 +5,12 @@
Deny from all
</IfVersion>
<IfVersion >= 2.4>
<IfModule mod_perl.c>
Deny from all
</IfModule>
<IfModule !mod_perl.c>
Require all denied
</IfModule>
</IfVersion>
</IfModule>
<IfModule !mod_version.c>
......
......@@ -52,7 +52,12 @@ use constant HT_DEFAULT_DENY => <<EOT;
Deny from all
</IfVersion>
<IfVersion >= 2.4>
<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>
<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>
<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>
# <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>
<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>
<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>
<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>
<IfModule mod_perl.c>
Deny from all
</IfModule>
<IfModule !mod_perl.c>
Require all denied
</IfModule>
</IfVersion>
</IfModule>
<IfModule !mod_version.c>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment