etc/apache2/hg.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
		<Location "/401.html">
franta-hg@26
    18
				ProxyPass !
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@22
    23
		ProxyPassMatch ^/robots.txt !
franta-hg@22
    24
franta-hg@21
    25
		ProxyPass "/" "http://localhost:16169/"
franta-hg@21
    26
		ProxyPassReverse "/" "http://localhost:16169/"
franta-hg@21
    27
franta-hg@21
    28
		ErrorLog ${APACHE_LOG_DIR}/error.log
franta-hg@21
    29
		CustomLog ${APACHE_LOG_DIR}/access.log combined
franta-hg@21
    30
</VirtualHost>