aboutsummaryrefslogtreecommitdiffstats
path: root/modules/bugzilla/templates/webapp_bugzilla.conf
diff options
context:
space:
mode:
Diffstat (limited to 'modules/bugzilla/templates/webapp_bugzilla.conf')
-rw-r--r--modules/bugzilla/templates/webapp_bugzilla.conf40
1 files changed, 33 insertions, 7 deletions
diff --git a/modules/bugzilla/templates/webapp_bugzilla.conf b/modules/bugzilla/templates/webapp_bugzilla.conf
index 9446ce4f..a8f37a00 100644
--- a/modules/bugzilla/templates/webapp_bugzilla.conf
+++ b/modules/bugzilla/templates/webapp_bugzilla.conf
@@ -2,37 +2,56 @@
path_data_directory = "/var/lib/bugzilla"
%>
-<Directory /usr/share/bugzilla/www>
- Order allow,deny
- Allow from all
- AllowOverride Limit FileInfo Indexes Options
-
- Options ExecCGI
- DirectoryIndex index.cgi
+<Directory /usr/share/bugzilla/>
+ AddHandler cgi-script .cgi
+ Options +ExecCGI +FollowSymLinks
+ DirectoryIndex index.cgi index.html
+ AllowOverride All
</Directory>
# The duplicates.rdf must be accessible, as it is used by
# duplicates.xul
<Directory <%= path_data_directory %>>
<Files duplicates.rdf>
+ <IfModule mod_authz_core.c>
+ # Apache 2.4
+ Require all granted
+ </IfModule>
+ <IfModule !mod_authz_core.c>
+ # Apache 2.2
Order allow,deny
Allow from all
+ </IfModule>
</Files>
</Directory>
# The png files locally created locally must be accessible
<Directory <%= path_data_directory %>/webdot>
<FilesMatch \.png$>
+ <IfModule mod_authz_core.c>
+ # Apache 2.4
+ Require all granted
+ </IfModule>
+ <IfModule !mod_authz_core.c>
+ # Apache 2.2
Order allow,deny
Allow from all
+ </IfModule>
</FilesMatch>
</Directory>
Alias /graphs/ <%= path_data_directory %>/graphs/
<Directory <%= path_data_directory %>/graphs>
<FilesMatch \.png$>
+ <IfModule mod_authz_core.c>
+ # Apache 2.4
+ Require all granted
+ </IfModule>
+ <IfModule !mod_authz_core.c>
+ # Apache 2.2
Order allow,deny
Allow from all
+ </IfModule>
</FilesMatch>
</Directory>
@@ -41,7 +60,14 @@ Alias /graphs/ <%= path_data_directory %>/graphs/
Alias /extensions/Mageia/web/ <%= scope.lookupvar("bugzilla::extension_location") %>/web/
<Directory <%= scope.lookupvar("bugzilla::extension_location") %>/web/>
<FilesMatch \.png$>
+ <IfModule mod_authz_core.c>
+ # Apache 2.4
+ Require all granted
+ </IfModule>
+ <IfModule !mod_authz_core.c>
+ # Apache 2.2
Order allow,deny
Allow from all
+ </IfModule>
</FilesMatch>
</Directory>