mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-04-29 10:10:19 +00:00
Depending on which module is enabled, different configuration is used. Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org> Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
46 lines
1.7 KiB
Plaintext
46 lines
1.7 KiB
Plaintext
<Macro FreedomBoxTLSSiteMacro $domain>
|
|
|
|
# mod_gnutls default options. See /etc/apache2/site-available/default-tls.conf
|
|
<IfModule mod_gnutls.c>
|
|
<VirtualHost _default_:443>
|
|
ServerAdmin webmaster@localhost
|
|
ServerName $domain
|
|
DocumentRoot /var/www/html
|
|
|
|
ErrorLog ${APACHE_LOG_DIR}/error.log
|
|
CustomLog ${APACHE_LOG_DIR}/ssl_access.log combined
|
|
|
|
GnuTLSEnable On
|
|
# Automatically obtained certificates from Let's Encrypt
|
|
GnuTLSCertificateFile /etc/letsencrypt/live/$domain/fullchain.pem
|
|
GnuTLSKeyFile /etc/letsencrypt/live/$domain/privkey.pem
|
|
# See http://www.outoforder.cc/projects/apache/mod_gnutls/docs/#GnuTLSPriorities
|
|
GnuTLSPriorities NORMAL
|
|
</VirtualHost>
|
|
</IfModule>
|
|
|
|
# mod_ssl default options. See /etc/apache2/site-available/default-ssl.conf
|
|
<IfModule mod_ssl.c>
|
|
<VirtualHost _default_:443>
|
|
ServerAdmin webmaster@localhost
|
|
ServerName $domain
|
|
DocumentRoot /var/www/html
|
|
|
|
ErrorLog ${APACHE_LOG_DIR}/error.log
|
|
CustomLog ${APACHE_LOG_DIR}/access.log combined
|
|
|
|
SSLEngine on
|
|
# Automatically obtained certificates from Let's Encrypt
|
|
SSLCertificateFile /etc/letsencrypt/live/$domain/fullchain.pem
|
|
SSLCertificateKeyFile /etc/letsencrypt/live/$domain/privkey.pem
|
|
|
|
<FilesMatch "\.(cgi|shtml|phtml|php)$">
|
|
SSLOptions +StdEnvVars
|
|
</FilesMatch>
|
|
<Directory /usr/lib/cgi-bin>
|
|
SSLOptions +StdEnvVars
|
|
</Directory>
|
|
</VirtualHost>
|
|
</IfModule>
|
|
</Macro>
|