etc/apache2/git.conf
author František Kučera <franta-hg@frantovo.cz>
Thu, 29 Oct 2020 19:21:19 +0100
branchv_0
changeset 24 1d46fb79b1af
parent 22 b2cb46ae50f7
permissions -rw-r--r--
allow the ~ character in the URL
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@22
     8
		Alias /robots.txt /var/www/html/robots.txt
franta-hg@21
     9
		Alias /cgit-css "/usr/share/cgit/"
franta-hg@21
    10
		ScriptAlias / "/usr/lib/cgit/cgit.cgi/"
franta-hg@21
    11
		<Directory "/usr/share/cgit/">
franta-hg@21
    12
			AllowOverride None
franta-hg@21
    13
			Options None
franta-hg@21
    14
			Require all granted
franta-hg@21
    15
		</Directory>
franta-hg@21
    16
		<Directory "/usr/lib/cgit/">
franta-hg@21
    17
			AllowOverride None
franta-hg@21
    18
			Options ExecCGI FollowSymlinks
franta-hg@21
    19
			Require all granted
franta-hg@21
    20
		</Directory>
franta-hg@21
    21
franta-hg@21
    22
		ErrorLog ${APACHE_LOG_DIR}/error.log
franta-hg@21
    23
		CustomLog ${APACHE_LOG_DIR}/access.log combined
franta-hg@21
    24
</VirtualHost>