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
franta-hg@21
     1
<VirtualHost *:80>
franta-hg@21
     2
		ServerName  …
franta-hg@21
     3
		ServerAlias …
franta-hg@21
     4
franta-hg@21
     5
		ServerAdmin webmaster@localhost
franta-hg@21
     6
		DocumentRoot /var/www/html
franta-hg@21
     7
franta-hg@26
     8
		<Location />
franta-hg@26
     9
				AuthName "jen_pro_lidi"
franta-hg@26
    10
				AuthType Basic
franta-hg@26
    11
				AuthBasicProvider file
franta-hg@26
    12
				AuthUserFile "/etc/apache2/hesla"
franta-hg@26
    13
				Require valid-user
franta-hg@26
    14
				ErrorDocument 401 /401.html
franta-hg@26
    15
		</Location>
franta-hg@26
    16
franta-hg@26
    17
		Alias /401.html /var/www/html/401.html
franta-hg@26
    18
		<Location /401.html>
franta-hg@26
    19
				Require all granted
franta-hg@26
    20
		</Location>
franta-hg@26
    21
franta-hg@22
    22
		Alias /robots.txt /var/www/html/robots.txt
franta-hg@21
    23
		Alias /cgit-css "/usr/share/cgit/"
franta-hg@21
    24
		ScriptAlias / "/usr/lib/cgit/cgit.cgi/"
franta-hg@21
    25
		<Directory "/usr/share/cgit/">
franta-hg@21
    26
			AllowOverride None
franta-hg@21
    27
			Options None
franta-hg@21
    28
			Require all granted
franta-hg@21
    29
		</Directory>
franta-hg@21
    30
		<Directory "/usr/lib/cgit/">
franta-hg@21
    31
			AllowOverride None
franta-hg@21
    32
			Options ExecCGI FollowSymlinks
franta-hg@21
    33
			Require all granted
franta-hg@21
    34
		</Directory>
franta-hg@21
    35
franta-hg@21
    36
		ErrorLog ${APACHE_LOG_DIR}/error.log
franta-hg@21
    37
		CustomLog ${APACHE_LOG_DIR}/access.log combined
franta-hg@21
    38
</VirtualHost>