]> git.pld-linux.org Git - packages/cgit.git/blobdiff - cgit-apache.conf
- updated to 0.10
[packages/cgit.git] / cgit-apache.conf
index cc0b45ade3f662fd4676d065d1fccec907a13e76..75285cea16ccf8763fdbdb4ab401ec9d8dd9f30e 100644 (file)
@@ -1,13 +1,29 @@
 <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:
@@ -18,6 +34,14 @@ Alias /cgit/ /usr/share/cgit/
 #      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>
This page took 0.052756 seconds and 4 git commands to generate.