summaryrefslogtreecommitdiffstats
path: root/server/setup/apache-suexec-fcgid-cgit-etc/1-cgit.txt
blob: 49a32c2c6a8e631f7050b9be5415f0da3ea986f7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42

apt-get install cgit highlight

cp -a /usr/lib/cgit /srv/www/
chown -R webrunner:webrunner /srv/www/cgit

vi /srv/www/cgit/cgitrc
cp /srv/www/cgit/cgitrc /etc
chown -R webrunner:webrunner /srv/www/cgit

cd /srv/www/jogamp.org/
mv git git-old    
mkdir git
ln -s /srv/www/cgit cgit
chown -R webrunner:webrunner git cgit

Normal:
    ScriptAlias /cgit/ "/srv/www/cgit/cgit.cgi/"
    #RedirectMatch ^/cgit$ /cgit/
    Alias /cgit-css "/usr/share/cgit/"
    <Directory "/srv/www/cgit/">
       AllowOverride None
       Options ExecCGI FollowSymlinks
       Require all granted
    </Directory>
    <Directory "/srv/www/jogamp.org/git">
        Include sites-available/gitweb-to-cgit-rel.conf
    </Directory>

SSL:
    ScriptAlias /cgit/ "/srv/www/cgit/cgit.cgi/"
    #RedirectMatch ^/cgit$ /cgit/
    Alias /cgit-css "/usr/share/cgit/"
    <Directory "/srv/www/cgit/">
       AllowOverride None
       Options ExecCGI FollowSymlinks
       Require all granted
    </Directory>
    <Directory "/srv/www/jogamp.org/git">
        Include sites-available/gitweb-to-cgit-rel_ssl.conf
    </Directory>