]> git.pld-linux.org Git - packages/cgit.git/blobdiff - cgit-apache.conf
- migrate to apache 2.4
[packages/cgit.git] / cgit-apache.conf
diff --git a/cgit-apache.conf b/cgit-apache.conf
new file mode 100644 (file)
index 0000000..cc0b45a
--- /dev/null
@@ -0,0 +1,23 @@
+<Directory /usr/share/cgit>
+       AllowOverride None
+       Allow from All
+</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
+</Location>
+
+# Version 2: cgit as a handler to whole vhost:
+#<VirtualHost *:80>
+#      ServerName cgit
+#
+#      Alias /cgit/ /usr/share/cgit/
+#      DocumentRoot /usr/lib/cgi-bin/cgit.cgi
+#      <Location />
+#              Options ExecCGI
+#              Allow from All
+#      </Location>
+#</VirtualHost>
This page took 0.042526 seconds and 4 git commands to generate.