From: Jochen Wiedmann Date: Mon, 2 Feb 2015 16:34:21 +0000 (+0000) Subject: Bug 1121477: Support for Apache HTTPD 2.4 X-Git-Tag: bugzilla-4.4.9~14 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=981729e5b625daeb9c288754865c09d5d9b2ddef;p=thirdparty%2Fbugzilla.git Bug 1121477: Support for Apache HTTPD 2.4 r=dkl,a=glob --- diff --git a/.htaccess b/.htaccess index 3b464a475b..d5bc8b26e9 100644 --- a/.htaccess +++ b/.htaccess @@ -1,6 +1,16 @@ # Don't allow people to retrieve non-cgi executable files or our private data - deny from all + + + Deny from all + + 2.2> + Require all denied + + + + Deny from all + Options -Indexes diff --git a/Bugzilla/Install/Filesystem.pm b/Bugzilla/Install/Filesystem.pm index aac447e287..f84acce847 100644 --- a/Bugzilla/Install/Filesystem.pm +++ b/Bugzilla/Install/Filesystem.pm @@ -43,7 +43,17 @@ our @EXPORT = qw( use constant HT_DEFAULT_DENY => < + + Deny from all + + 2.2> + Require all denied + + + + Deny from all + EOT ############### @@ -329,11 +339,31 @@ EOT "$graphsdir/.htaccess" => { perms => WS_SERVE, contents => < - Allow from all + + + Allow from all + + 2.2> + Require all granted + + + + Allow from all + # And no directory listings, either. -Deny from all + + + Deny from all + + 2.2> + Require all denied + + + + Deny from all + 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 - Allow from 192.20.225.0/24 - Deny from all + + + Allow from 192.20.225.0/24 + Deny from all + + 2.2> + Require ip 192.20.225.0/24 + Require all denied + + + + Allow from 192.20.225.0/24 + Deny from all + # Allow access to .png files created by a local copy of 'dot' - Allow from all + + + Allow from all + + 2.2> + Require all granted + + + + Allow from all + # And no directory listings, either. -Deny from all + + + Deny from all + + 2.2> + Require all denied + + + + Deny from all + EOT }, );