diff options
author | Nicolas Lécureuil <neoclust@mageia.org> | 2017-04-06 14:44:36 +0200 |
---|---|---|
committer | Nicolas Lécureuil <neoclust@mageia.org> | 2017-04-06 14:44:36 +0200 |
commit | f74cd036634f7e30c7e50e5d4d40e14d0a6fc216 (patch) | |
tree | 3fcf134dc92c06b5801ed03be8c2ceeef7d84402 /modules/bugzilla-dev | |
parent | 6ce3fce581761ae052113cb9f54fad5c6104062f (diff) | |
download | puppet-f74cd036634f7e30c7e50e5d4d40e14d0a6fc216.tar puppet-f74cd036634f7e30c7e50e5d4d40e14d0a6fc216.tar.gz puppet-f74cd036634f7e30c7e50e5d4d40e14d0a6fc216.tar.bz2 puppet-f74cd036634f7e30c7e50e5d4d40e14d0a6fc216.tar.xz puppet-f74cd036634f7e30c7e50e5d4d40e14d0a6fc216.zip |
Port to new apache
Diffstat (limited to 'modules/bugzilla-dev')
-rwxr-xr-x | modules/bugzilla-dev/templates/webapp_bugzilla.conf | 39 |
1 files changed, 37 insertions, 2 deletions
diff --git a/modules/bugzilla-dev/templates/webapp_bugzilla.conf b/modules/bugzilla-dev/templates/webapp_bugzilla.conf index 9c1d546d..b3ec283b 100755 --- a/modules/bugzilla-dev/templates/webapp_bugzilla.conf +++ b/modules/bugzilla-dev/templates/webapp_bugzilla.conf @@ -3,8 +3,15 @@ path_data_directory = "/var/lib/bugzilla" %> <Directory /usr/share/bugzilla/> - Order allow,deny - Allow from all + <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> AllowOverride Limit FileInfo Indexes Options Options ExecCGI @@ -15,24 +22,45 @@ path_data_directory = "/var/lib/bugzilla" # 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 +69,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> |