| author | František Kučera <franta-hg@frantovo.cz> |
| Fri, 28 Nov 2025 21:09:23 +0100 | |
| branch | v_0 |
| changeset 26 | 0f42cc368775 |
| parent 22 | b2cb46ae50f7 |
| permissions | -rw-r--r-- |
1 <VirtualHost *:80>
2 ServerName …
3 ServerAlias …
5 ServerAdmin webmaster@localhost
6 DocumentRoot /var/www/html
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>
17 <Location "/401.html">
18 ProxyPass !
19 Require all granted
20 </Location>
22 Alias /robots.txt /var/www/html/robots.txt
23 ProxyPassMatch ^/robots.txt !
25 ProxyPass "/" "http://localhost:16169/"
26 ProxyPassReverse "/" "http://localhost:16169/"
28 ErrorLog ${APACHE_LOG_DIR}/error.log
29 CustomLog ${APACHE_LOG_DIR}/access.log combined
30 </VirtualHost>