2020-12-20 14:52:15 +01:00
|
|
|
# customized settings for CAcert webserver
|
|
|
|
|
|
|
|
MaxRequestsPerChild 100
|
|
|
|
|
2020-12-20 15:28:19 +01:00
|
|
|
ServerAdmin support@cacert.localhost
|
|
|
|
ServerName cacert.localhost
|
2020-12-20 14:52:15 +01:00
|
|
|
|
|
|
|
Header always set X-Frame-Options "DENY"
|
|
|
|
Header always set X-XSS-Protection "1; mode=block"
|
|
|
|
Header always set X-Content-Type-Options "nosniff"
|
|
|
|
|
|
|
|
DocumentRoot /www/www
|
|
|
|
|
|
|
|
<Directory />
|
|
|
|
Options -Indexes +Includes +FollowSymLinks
|
|
|
|
AllowOverride None
|
|
|
|
</Directory>
|
|
|
|
|
|
|
|
<Directory /www/www>
|
|
|
|
Options -Indexes +Includes +FollowSymLinks
|
|
|
|
AllowOverride All
|
|
|
|
Require all granted
|
|
|
|
</Directory>
|
|
|
|
|
|
|
|
<Directory /www/www/docs>
|
|
|
|
Options +Indexes +Includes +FollowSymLinks +MultiViews
|
|
|
|
AllowOverride None
|
|
|
|
</Directory>
|
|
|
|
|
|
|
|
<Directory /www/stamp>
|
|
|
|
Options -Indexes +Includes +FollowSymLinks
|
|
|
|
AllowOverride All
|
|
|
|
Require all granted
|
|
|
|
</Directory>
|
|
|
|
|
|
|
|
UseCanonicalName off
|
|
|
|
HostnameLookups on
|
|
|
|
|
|
|
|
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" mod_gzip: %{mod_gzip_compression_ratio}npct. %T %v" full
|
|
|
|
|
|
|
|
CustomLog /var/log/apache2/access.log full
|
|
|
|
|
|
|
|
ServerSignature off
|
|
|
|
|
|
|
|
AddDefaultCharset on
|
|
|
|
|
|
|
|
<IfModule mod_ssl.c>
|
|
|
|
# OCSP Stapling, only in httpd 2.3.3 and later
|
2020-12-21 18:44:20 +01:00
|
|
|
SSLUseStapling off
|
2020-12-20 14:52:15 +01:00
|
|
|
SSLStaplingResponderTimeout 5
|
|
|
|
SSLStaplingReturnResponderErrors off
|
|
|
|
SSLStaplingCache shmcb:${APACHE_RUN_DIR}/ocsp(1280000)
|
|
|
|
SSLStaplingFakeTryLater off
|
|
|
|
SSLStaplingStandardCacheTimeout 86400
|
|
|
|
</IfModule>
|