diff options
Diffstat (limited to 'apache2')
-rw-r--r-- | apache2/conf-available/local-ssl.conf | 32 |
1 files changed, 21 insertions, 11 deletions
diff --git a/apache2/conf-available/local-ssl.conf b/apache2/conf-available/local-ssl.conf index 3548264..8e30d50 100644 --- a/apache2/conf-available/local-ssl.conf +++ b/apache2/conf-available/local-ssl.conf @@ -14,15 +14,25 @@ RedirectMatch permanent ^(?!/.well-known/)(.*) https://${_HOST}/$1 </If> -SSLEngine on -<IfDefine _TLS_KEY> - SSLCertificateFile ${_TLS_CERT_CHAIN} - SSLCertificateKeyFile ${_TLS_KEY} -</IfDefine> +<IfModule mod_gnutls.c> + GnuTLSEnable on + <IfDefine _TLS_KEY> + GnuTLSCertificateFile ${_TLS_CERT_CHAIN} + GnuTLSKeyFile ${_TLS_KEY} + </IfDefine> +</IfModule> + +<IfModule !mod_gnutls.c> + SSLEngine on + <IfDefine _TLS_KEY> + SSLCertificateFile ${_TLS_CERT_CHAIN} + SSLCertificateKeyFile ${_TLS_KEY} + </IfDefine> -<FilesMatch "\.(cgi|shtml|phtml|php)$"> - SSLOptions +StdEnvVars -</FilesMatch> -<Directory /usr/lib/cgi-bin> - SSLOptions +StdEnvVars -</Directory> + <FilesMatch "\.(cgi|shtml|phtml|php)$"> + SSLOptions +StdEnvVars + </FilesMatch> + <Directory /usr/lib/cgi-bin> + SSLOptions +StdEnvVars + </Directory> +</IfModule> |