-
Install Cgit and Apache webserver
sudo apt install cgit apache2 -
Assuming configs are auto loaded during installation. Enable below modules and restart the web-server
sudo a2enmod cgid sudo a2enmod ssl sudo a2enconf cgit sudo systemctl restart apache2 -
Explore your git repositories at http://localhost/cgit
Take a look here for sample Cgit config file and place it in '/etc' directory.