create api, site and add security improvements to apache config

Signed-off-by: Marek Küthe <m.k@mk16.de>
This commit is contained in:
Marek Küthe 2022-09-14 20:23:48 +02:00
parent 01af21f510
commit 69eabb70b8
No known key found for this signature in database
GPG key ID: 7E869146699108C7
9 changed files with 454 additions and 8 deletions

View file

@ -5,12 +5,16 @@
ServerAlias v4.myip.dn42
ServerAlias 172.22.125.30
DocumentRoot /path/to/wwwroot/
DocumentRoot /var/www/myip.dn42/
<Directory /var/www/myip.dn42/>
Options -Indexes
AllowOverride None
</Directory>
ErrorLog ${APACHE_LOG_DIR}/error-myip.dn42.log
CustomLog ${APACHE_LOG_DIR}/access-myip.dn42.log combined
ServerSignature On
ServerTokens Major
</VirtualHost>
# or potentially use anycast [fd42:d42:d42:81::1] if approved
@ -19,11 +23,15 @@
ServerAlias v6.myip.dn42
ServerAlias fd63:5d40:47e5::1111
DocumentRoot /path/to/wwwroot/
DocumentRoot /var/www/myip.dn42/
<Directory /var/www/myip.dn42/>
Options -Indexes
AllowOverride None
</Directory>
ErrorLog ${APACHE_LOG_DIR}/error-myip.dn42.log
CustomLog ${APACHE_LOG_DIR}/access-myip.dn42.log combined
ServerSignature On
ServerTokens Major
</VirtualHost>