etc/apache2/git.conf
author František Kučera <franta-hg@frantovo.cz>
Fri, 28 Nov 2025 21:09:23 +0100
branchv_0
changeset 26 0f42cc368775
parent 22 b2cb46ae50f7
permissions -rw-r--r--
this service is only for humans, not AI or other bots
     1 <VirtualHost *:80>
     2 		ServerName  …
     3 		ServerAlias …
     4 
     5 		ServerAdmin webmaster@localhost
     6 		DocumentRoot /var/www/html
     7 
     8 		<Location />
     9 				AuthName "jen_pro_lidi"
    10 				AuthType Basic
    11 				AuthBasicProvider file
    12 				AuthUserFile "/etc/apache2/hesla"
    13 				Require valid-user
    14 				ErrorDocument 401 /401.html
    15 		</Location>
    16 
    17 		Alias /401.html /var/www/html/401.html
    18 		<Location /401.html>
    19 				Require all granted
    20 		</Location>
    21 
    22 		Alias /robots.txt /var/www/html/robots.txt
    23 		Alias /cgit-css "/usr/share/cgit/"
    24 		ScriptAlias / "/usr/lib/cgit/cgit.cgi/"
    25 		<Directory "/usr/share/cgit/">
    26 			AllowOverride None
    27 			Options None
    28 			Require all granted
    29 		</Directory>
    30 		<Directory "/usr/lib/cgit/">
    31 			AllowOverride None
    32 			Options ExecCGI FollowSymlinks
    33 			Require all granted
    34 		</Directory>
    35 
    36 		ErrorLog ${APACHE_LOG_DIR}/error.log
    37 		CustomLog ${APACHE_LOG_DIR}/access.log combined
    38 </VirtualHost>