gitweb on apache

# projects web page will be: https://192.168.1.8/gitweb/ # Create a git project (e.g. testproject.git): # mkdir -p /opt/GITRepositories/testproject.git # cd /opt/GITRepositories/testproject.git # git init –bare –shared # cp -v /opt/GITRepositories/test.git/hooks/post-update.sample /opt/GITRepositories/test.git/hooks/post-update # now https://192.168.1.8/testproject.git is ready for cloning: # git […]

gitweb on nginx

nginx configuration # Let Nginx handle static files # location ~ ^.*\.git/objects/([0-9a-f]+/[0-9a-f]+|pack/pack-[0-9a-f]+.(pack|idx)) { location ~ ^/[^/]*\.git/objects/([0-9a-f]+/[0-9a-f]+|pack/pack-[0-9a-f]+.(pack|idx)) { auth_basic “strong authentication”; auth_basic_user_file /********/apps/etc/basic.auth.strong.passwords.txt; root /********/GITRepoUbuntu/; } # Pass Git Smart HTTP requests to git-http-backend. Require Auth for everything. # see man […]