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
     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 		<Location "/401.html">
    18 				ProxyPass !
    19 				Require all granted
    20 		</Location>
    21 
    22 		Alias /robots.txt /var/www/html/robots.txt
    23 		ProxyPassMatch ^/robots.txt !
    24 
    25 		ProxyPass "/" "http://localhost:16169/"
    26 		ProxyPassReverse "/" "http://localhost:16169/"
    27 
    28 		ErrorLog ${APACHE_LOG_DIR}/error.log
    29 		CustomLog ${APACHE_LOG_DIR}/access.log combined
    30 </VirtualHost>