summaryrefslogtreecommitdiff
path: root/www-apps/cgit/files
diff options
context:
space:
mode:
authorRené Neumann <rene.neumann@in.tum.de>2012-10-01 14:57:53 +0200
committerRené Neumann <rene.neumann@in.tum.de>2012-10-01 14:58:09 +0200
commitfc5392a49b2913b467ecf7b733ba24a6538b7eea (patch)
treeb6b68ee6cc9945bf0bd9bb10af3f754dde7de3e5 /www-apps/cgit/files
parent78e171162ef01edf620d9d087a3d929945db6020 (diff)
downloadoverlay-fc5392a49b2913b467ecf7b733ba24a6538b7eea.tar.gz
overlay-fc5392a49b2913b467ecf7b733ba24a6538b7eea.tar.bz2
overlay-fc5392a49b2913b467ecf7b733ba24a6538b7eea.zip
CGit update
Diffstat (limited to 'www-apps/cgit/files')
-rw-r--r--www-apps/cgit/files/cgitrc6
-rw-r--r--www-apps/cgit/files/postinstall-en.txt30
2 files changed, 35 insertions, 1 deletions
diff --git a/www-apps/cgit/files/cgitrc b/www-apps/cgit/files/cgitrc
index cbf6150..a3eba11 100644
--- a/www-apps/cgit/files/cgitrc
+++ b/www-apps/cgit/files/cgitrc
@@ -13,6 +13,10 @@
#enable-index-links=1
+# Enable ASCII art commit history graph on the log pages
+#enable-commit-graph=1
+
+
# Show number of affected files per commit on the log pages
#enable-log-filecount=1
@@ -53,7 +57,7 @@
## List of common mimetypes
##
-#mimetype.git=image/git
+#mimetype.gif=image/gif
#mimetype.html=text/html
#mimetype.jpg=image/jpeg
#mimetype.jpeg=image/jpeg
diff --git a/www-apps/cgit/files/postinstall-en.txt b/www-apps/cgit/files/postinstall-en.txt
index 94280c8..b164123 100644
--- a/www-apps/cgit/files/postinstall-en.txt
+++ b/www-apps/cgit/files/postinstall-en.txt
@@ -13,3 +13,33 @@ Then add "include=/etc/cgit-repos" in /etc/cgitrc. This way it's simpler and
more convenient. You won't need to update your cgitrc every time you add a new
repository.
+===============================================================================
+ Apache HowTo
+===============================================================================
+
+With a default apache vhost config you can now access your repository at
+http://<vhostname>/cgi-bin/cgit.cgi/
+
+If you wish to access your repository starting from the root and don't want
+'cgi-bin/cgit.cgi' to be invisible, 2 things are needed.
+
+In your apache vhost configuration file for your domain, add the following
+rewrite rules to your
+<Directory /var/www/<vhostname>/htdocs> section.
+<snip>
+ RewriteEngine On
+ # Redirect all non-existant urls to cgit
+ RewriteCond %{REQUEST_FILENAME} !-f
+ RewriteCond %{REQUEST_FILENAME} !-d
+ RewriteRule ^.* /cgi-bin/cgit.cgi/$0 [L,PT]
+
+ # Redirect the empty url to cgit
+ RewriteRule ^$ /cgi-bin/cgit.cgi/ [L,PT]
+<snip>
+
+To make cgit create the correct URL's internally add to /etc/cgitrc (or your
+local config file)
+Enable virtual-root=/
+
+After these rules, you can now access cgit via http://<vhostname>/ to get the
+listing, and http://<vhostname>/repository to go directly to repository.