1 |
pva 11/06/27 08:58:08 |
2 |
|
3 |
Modified: postinstall-en.txt |
4 |
Log: |
5 |
Version bump, bump EAPI, add instructions for apache2 installation bug 370681 wrt to Oliver Schinagl. Thank Nikoli for all this job. |
6 |
|
7 |
(Portage version: 2.1.10.3/cvs/Linux x86_64) |
8 |
|
9 |
Revision Changes Path |
10 |
1.2 www-apps/cgit/files/postinstall-en.txt |
11 |
|
12 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-apps/cgit/files/postinstall-en.txt?rev=1.2&view=markup |
13 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-apps/cgit/files/postinstall-en.txt?rev=1.2&content-type=text/plain |
14 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-apps/cgit/files/postinstall-en.txt?r1=1.1&r2=1.2 |
15 |
|
16 |
Index: postinstall-en.txt |
17 |
=================================================================== |
18 |
RCS file: /var/cvsroot/gentoo-x86/www-apps/cgit/files/postinstall-en.txt,v |
19 |
retrieving revision 1.1 |
20 |
retrieving revision 1.2 |
21 |
diff -u -r1.1 -r1.2 |
22 |
--- postinstall-en.txt 23 Feb 2010 22:54:10 -0000 1.1 |
23 |
+++ postinstall-en.txt 27 Jun 2011 08:58:08 -0000 1.2 |
24 |
@@ -13,3 +13,33 @@ |
25 |
more convenient. You won't need to update your cgitrc every time you add a new |
26 |
repository. |
27 |
|
28 |
+=============================================================================== |
29 |
+ Apache HowTo |
30 |
+=============================================================================== |
31 |
+ |
32 |
+With a default apache vhost config you can now access your repository at |
33 |
+http://<vhostname>/cgi-bin/cgit.cgi/ |
34 |
+ |
35 |
+If you wish to access your repository starting from the root and don't want |
36 |
+'cgi-bin/cgit.cgi' to be invisible, 2 things are needed. |
37 |
+ |
38 |
+In your apache vhost configuration file for your domain, add the following |
39 |
+rewrite rules to your |
40 |
+<Directory /var/www/<vhostname>/htdocs> section. |
41 |
+<snip> |
42 |
+ RewriteEngine On |
43 |
+ # Redirect all non-existant urls to cgit |
44 |
+ RewriteCond %{REQUEST_FILENAME} !-f |
45 |
+ RewriteCond %{REQUEST_FILENAME} !-d |
46 |
+ RewriteRule ^.* /cgi-bin/cgit.cgi/$0 [L,PT] |
47 |
+ |
48 |
+ # Redirect the empty url to cgit |
49 |
+ RewriteRule ^$ /cgi-bin/cgit.cgi/ [L,PT] |
50 |
+<snip> |
51 |
+ |
52 |
+To make cgit create the correct URL's internally add to /etc/cgitrc (or your |
53 |
+local config file) |
54 |
+Enable virtual-root=/ |
55 |
+ |
56 |
+After these rules, you can now access cgit via http://<vhostname>/ to get the |
57 |
+listing, and http://<vhostname>/repository to go directly to repository. |