<Directory /usr/share/cgit>
AllowOverride None
- Allow from All
+ # Apache 2.x
+ <IfModule !mod_authz_core.c>
+ Order allow,deny
+ Allow from all
+ </IfModule>
+ # Apache 2.4
+ <IfModule mod_authz_core.c>
+ Require all granted
+ </IfModule>
</Directory>
# Version 1 (default): under /cgi-bin/cgit.cgi address
ScriptAlias /cgi-bin/cgit.cgi /usr/lib/cgi-bin/cgit.cgi
Alias /cgit/ /usr/share/cgit/
<Location /cgi-bin/cgit.cgi>
- Allow from All
+ # Apache 2.x
+ <IfModule !mod_authz_core.c>
+ Order allow,deny
+ Allow from all
+ </IfModule>
+ # Apache 2.4
+ <IfModule mod_authz_core.c>
+ Require all granted
+ </IfModule>
</Location>
# Version 2: cgit as a handler to whole vhost:
# DocumentRoot /usr/lib/cgi-bin/cgit.cgi
# <Location />
# Options ExecCGI
-# Allow from All
+# # Apache 2.x
+# <IfModule !mod_authz_core.c>
+# Order allow,deny
+# Allow from all
+# </IfModule>
+# # Apache 2.4
+# <IfModule mod_authz_core.c>
+# Require all granted
+# </IfModule>
# </Location>
#</VirtualHost>