etc/apache2/git.conf
branchv_0
changeset 26 0f42cc368775
parent 22 b2cb46ae50f7
     1.1 --- a/etc/apache2/git.conf	Sun Jan 08 12:37:15 2023 +0100
     1.2 +++ b/etc/apache2/git.conf	Fri Nov 28 21:09:23 2025 +0100
     1.3 @@ -5,6 +5,20 @@
     1.4  		ServerAdmin webmaster@localhost
     1.5  		DocumentRoot /var/www/html
     1.6  
     1.7 +		<Location />
     1.8 +				AuthName "jen_pro_lidi"
     1.9 +				AuthType Basic
    1.10 +				AuthBasicProvider file
    1.11 +				AuthUserFile "/etc/apache2/hesla"
    1.12 +				Require valid-user
    1.13 +				ErrorDocument 401 /401.html
    1.14 +		</Location>
    1.15 +
    1.16 +		Alias /401.html /var/www/html/401.html
    1.17 +		<Location /401.html>
    1.18 +				Require all granted
    1.19 +		</Location>
    1.20 +
    1.21  		Alias /robots.txt /var/www/html/robots.txt
    1.22  		Alias /cgit-css "/usr/share/cgit/"
    1.23  		ScriptAlias / "/usr/lib/cgit/cgit.cgi/"