diff -r 1088fd70d17c -r 0f42cc368775 etc/apache2/git.conf --- a/etc/apache2/git.conf Sun Jan 08 12:37:15 2023 +0100 +++ b/etc/apache2/git.conf Fri Nov 28 21:09:23 2025 +0100 @@ -5,6 +5,20 @@ ServerAdmin webmaster@localhost DocumentRoot /var/www/html + + AuthName "jen_pro_lidi" + AuthType Basic + AuthBasicProvider file + AuthUserFile "/etc/apache2/hesla" + Require valid-user + ErrorDocument 401 /401.html + + + Alias /401.html /var/www/html/401.html + + Require all granted + + Alias /robots.txt /var/www/html/robots.txt Alias /cgit-css "/usr/share/cgit/" ScriptAlias / "/usr/lib/cgit/cgit.cgi/"