Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
bugzilla
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
etersoft
bugzilla
Commits
639b50f3
Commit
639b50f3
authored
Feb 20, 2015
by
Frédéric Buclin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 1133690: .htaccess incorrectly assumes that Apache 2.2.x can read new 2.4 directives
r=dkl a=glob
parent
9f1e3658
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
19 deletions
+19
-19
.htaccess
.htaccess
+2
-2
Filesystem.pm
Bugzilla/Install/Filesystem.pm
+17
-17
No files found.
.htaccess
View file @
639b50f3
# Don't allow people to retrieve non-cgi executable files or our private data
<
FilesMatch
(\.pm|\.pl|\.tmpl|localconfig.*)$
>
<
IfModule
mod_version.c
>
<
IfVersion
<
= 2.2
>
<
IfVersion
<
2.4
>
Deny
from
all
</
IfVersion
>
<
IfVersion
>
2.2
>
<
IfVersion
>
=
2.4
>
Require
all denied
</
IfVersion
>
</
IfModule
>
...
...
Bugzilla/Install/Filesystem.pm
View file @
639b50f3
...
...
@@ -48,10 +48,10 @@ use constant HT_DEFAULT_DENY => <<EOT;
# nothing in this directory is retrievable unless overridden by an .htaccess
# in a subdirectory
<IfModule mod_version.c>
<IfVersion <
= 2.2
>
<IfVersion <
2.4
>
Deny from all
</IfVersion>
<IfVersion >
2.2
>
<IfVersion >
= 2.4
>
Require all denied
</IfVersion>
</IfModule>
...
...
@@ -350,10 +350,10 @@ EOT
# Allow access to .png and .gif files.
<FilesMatch (\\.gif|\\.png)\$>
<IfModule mod_version.c>
<IfVersion <
= 2.2
>
<IfVersion <
2.4
>
Allow from all
</IfVersion>
<IfVersion >
2.2
>
<IfVersion >
= 2.4
>
Require all granted
</IfVersion>
</IfModule>
...
...
@@ -364,10 +364,10 @@ EOT
# And no directory listings, either.
<IfModule mod_version.c>
<IfVersion <
= 2.2
>
<IfVersion <
2.4
>
Deny from all
</IfVersion>
<IfVersion >
2.2
>
<IfVersion >
= 2.4
>
Require all denied
</IfVersion>
</IfModule>
...
...
@@ -383,14 +383,14 @@ EOT
# webdot server, you'll need to edit this
<FilesMatch \\.dot\$>
<IfModule mod_version.c>
<IfVersion <
= 2.2
>
<IfVersion <
2.4
>
Allow from 192.20.225.0/24
Deny from all
</IfVersion>
<IfVersion >
2.2
>
<IfVersion >
= 2.4
>
Require ip 192.20.225.0/24
Require all denied
</IfVersion>
</IfVersion>
</IfModule>
<IfModule !mod_version.c>
Allow from 192.20.225.0/24
...
...
@@ -401,10 +401,10 @@ EOT
# Allow access to .png files created by a local copy of 'dot'
<FilesMatch \\.png\$>
<IfModule mod_version.c>
<IfVersion <
= 2.2
>
<IfVersion <
2.4
>
Allow from all
</IfVersion>
<IfVersion >
2.2
>
<IfVersion >
= 2.4
>
Require all granted
</IfVersion>
</IfModule>
...
...
@@ -415,10 +415,10 @@ EOT
# And no directory listings, either.
<IfModule mod_version.c>
<IfVersion <
= 2.2
>
<IfVersion <
2.4
>
Deny from all
</IfVersion>
<IfVersion >
2.2
>
<IfVersion >
= 2.4
>
Require all denied
</IfVersion>
</IfModule>
...
...
@@ -432,10 +432,10 @@ EOT
# Allow access to .css files
<FilesMatch \\.(css|js)\$>
<IfModule mod_version.c>
<IfVersion <
= 2.2
>
<IfVersion <
2.4
>
Allow from all
</IfVersion>
<IfVersion >
2.2
>
<IfVersion >
= 2.4
>
Require all granted
</IfVersion>
</IfModule>
...
...
@@ -446,10 +446,10 @@ EOT
# And no directory listings, either.
<IfModule mod_version.c>
<IfVersion <
= 2.2
>
<IfVersion <
2.4
>
Deny from all
</IfVersion>
<IfVersion >
2.2
>
<IfVersion >
= 2.4
>
Require all denied
</IfVersion>
</IfModule>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment