]> git.pld-linux.org Git - packages/git-core.git/blobdiff - git-core-gitweb-httpd.conf
package zsh completion
[packages/git-core.git] / git-core-gitweb-httpd.conf
index e03387902f6034bc01d812859fb165c8a30601ba..51ffd6c57de2a9fe6f1c63297705c6f11c45220e 100644 (file)
@@ -1,15 +1,33 @@
 <Directory /usr/share/gitweb>
        AllowOverride None
-       Require all granted
+       # 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/gitweb.cgi address
 Alias /cgi-bin/static/ /usr/share/gitweb/static/
 ScriptAlias /cgi-bin/gitweb.cgi /usr/lib/cgi-bin/gitweb.cgi
 <Location /cgi-bin/gitweb.cgi>
-       Require all granted
+       # 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>
-SetEnv GITWEB_CONFIG "/etc/webapps/gitweb/gitweb.conf"
+<IfModule mod_env.c>
+       SetEnv GITWEB_CONFIG "/etc/webapps/gitweb/gitweb.conf"
+</IfModule>
 
 #
 # Version 2: gitweb as a handler to whole vhost:
@@ -22,7 +40,15 @@ SetEnv GITWEB_CONFIG "/etc/webapps/gitweb/gitweb.conf"
 #      DirectoryIndex gitweb.cgi
 #      <Location />
 #              Options ExecCGI
-#              Require all granted
+#              # 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>
 #      SetEnv GITWEB_CONFIG "/etc/webapps/gitweb/gitweb.conf"
 #</VirtualHost>
This page took 0.062013 seconds and 4 git commands to generate.