Page tree

Welcome to FreeSoftwareServers Confluence Wiki

Skip to end of metadata
Go to start of metadata
cat << 'EOL >
apt-get update
apt-get install -y git git-core cgit
ln -s /etc/apache2/mods-available/cgi.load /etc/apache2/mods-enabled/cgi.load
a2enmod rewrite
service apache2 restart
chmod +x

make the URL vs /cgit

nano /etc/apache2/conf-available/cgit.conf
ScriptAlias /git/ "/usr/lib/cgit/cgit.cgi/"
RedirectMatch ^/git$ /git/
Alias /cgit-css "/usr/share/cgit/"
<Directory "/usr/lib/cgit/">
   AllowOverride None
   Options ExecCGI FollowSymlinks
   Require all granted
  • No labels