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
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Ivan Ivlev
bugzilla
Commits
981729e5
Commit
981729e5
authored
Feb 02, 2015
by
Jochen Wiedmann
Committed by
David Lawrence
Feb 02, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 1121477: Support for Apache HTTPD 2.4
r=dkl,a=glob
parent
f2e695e7
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
80 additions
and
8 deletions
+80
-8
.htaccess
.htaccess
+11
-1
Filesystem.pm
Bugzilla/Install/Filesystem.pm
+69
-7
No files found.
.htaccess
View file @
981729e5
# Don't allow people to retrieve non-cgi executable files or our private data
<
FilesMatch
(\.pm|\.pl|\.tmpl|localconfig.*)$
>
deny
from
all
<
IfModule
mod_version.c
>
<
IfVersion
<= 2.2
>
Deny
from
all
</
IfVersion
>
<
IfVersion
>
2.2>
Require
all denied
</
IfVersion
>
</
IfModule
>
<
IfModule
!mod_version.c
>
Deny
from
all
</
IfModule
>
</
FilesMatch
>
Options
-Indexes
...
...
Bugzilla/Install/Filesystem.pm
View file @
981729e5
...
...
@@ -43,7 +43,17 @@ our @EXPORT = qw(
use
constant
HT_DEFAULT_DENY
=>
<<EOT;
# nothing in this directory is retrievable unless overridden by an .htaccess
# in a subdirectory
deny from all
<IfModule mod_version.c>
<IfVersion <= 2.2>
Deny from all
</IfVersion>
<IfVersion > 2.2>
Require all denied
</IfVersion>
</IfModule>
<IfModule !mod_version.c>
Deny from all
</IfModule>
EOT
###############
...
...
@@ -329,11 +339,31 @@ EOT
"$graphsdir/.htaccess"
=>
{
perms
=>
WS_SERVE
,
contents
=>
<<EOT
# Allow access to .png and .gif files.
<FilesMatch (\\.gif|\\.png)\$>
Allow from all
<IfModule mod_version.c>
<IfVersion <= 2.2>
Allow from all
</IfVersion>
<IfVersion > 2.2>
Require all granted
</IfVersion>
</IfModule>
<IfModule !mod_version.c>
Allow from all
</IfModule>
</FilesMatch>
# And no directory listings, either.
Deny from all
<IfModule mod_version.c>
<IfVersion <= 2.2>
Deny from all
</IfVersion>
<IfVersion > 2.2>
Require all denied
</IfVersion>
</IfModule>
<IfModule !mod_version.c>
Deny from all
</IfModule>
EOT
},
...
...
@@ -342,17 +372,49 @@ EOT
# if research.att.com ever changes their IP, or if you use a different
# webdot server, you'll need to edit this
<FilesMatch \\.dot\$>
Allow from 192.20.225.0/24
Deny from all
<IfModule mod_version.c>
<IfVersion <= 2.2>
Allow from 192.20.225.0/24
Deny from all
</IfVersion>
<IfVersion > 2.2>
Require ip 192.20.225.0/24
Require all denied
</IfVersion>
</IfModule>
<IfModule !mod_version.c>
Allow from 192.20.225.0/24
Deny from all
</IfModule>
</FilesMatch>
# Allow access to .png files created by a local copy of 'dot'
<FilesMatch \\.png\$>
Allow from all
<IfModule mod_version.c>
<IfVersion <= 2.2>
Allow from all
</IfVersion>
<IfVersion > 2.2>
Require all granted
</IfVersion>
</IfModule>
<IfModule !mod_version.c>
Allow from all
</IfModule>
</FilesMatch>
# And no directory listings, either.
Deny from all
<IfModule mod_version.c>
<IfVersion <= 2.2>
Deny from all
</IfVersion>
<IfVersion > 2.2>
Require all denied
</IfVersion>
</IfModule>
<IfModule !mod_version.c>
Deny from all
</IfModule>
EOT
},
);
...
...
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