diff options
author | Peter Volkov <pva@gentoo.org> | 2011-06-27 08:58:08 +0000 |
---|---|---|
committer | Peter Volkov <pva@gentoo.org> | 2011-06-27 08:58:08 +0000 |
commit | 7cc261e852857092238ebc0e20dc58846bb1a0b1 (patch) | |
tree | ee99f2f1db7a63fa3b64ab67762619f2bf998f30 /www-apps/cgit/files | |
parent | Version bumps. Ebuilds and patchsets by Arfrever. (diff) | |
download | gentoo-2-7cc261e852857092238ebc0e20dc58846bb1a0b1.tar.gz gentoo-2-7cc261e852857092238ebc0e20dc58846bb1a0b1.tar.bz2 gentoo-2-7cc261e852857092238ebc0e20dc58846bb1a0b1.zip |
Version bump, bump EAPI, add instructions for apache2 installation bug 370681 wrt to Oliver Schinagl. Thank Nikoli for all this job.
(Portage version: 2.1.10.3/cvs/Linux x86_64)
Diffstat (limited to 'www-apps/cgit/files')
-rw-r--r-- | www-apps/cgit/files/postinstall-en.txt | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/www-apps/cgit/files/postinstall-en.txt b/www-apps/cgit/files/postinstall-en.txt index 94280c80b66f..b164123f0196 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. |