Page tree

Welcome to FreeSoftwareServers Confluence Wiki

Skip to end of metadata
Go to start of metadata
cat << 'EOL >cgit_git_install_ubuntu16.sh
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
EOL
chmod +x cgit_git_install_ubuntu16.sh
./cgit_git_install_ubuntu16.sh

make the URL domain.com/git 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
</Directory>
  • No labels