mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-04-29 10:10:19 +00:00
apache: Add support for mod_ssl in addition to mod_gnutls
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>
This commit is contained in:
parent
511f5c09c0
commit
e36a4b85ee
@ -1,4 +1,6 @@
|
|||||||
<Macro FreedomBoxTLSSiteMacro $domain>
|
<Macro FreedomBoxTLSSiteMacro $domain>
|
||||||
|
|
||||||
|
# mod_gnutls default options. See /etc/apache2/site-available/default-tls.conf
|
||||||
<IfModule mod_gnutls.c>
|
<IfModule mod_gnutls.c>
|
||||||
<VirtualHost _default_:443>
|
<VirtualHost _default_:443>
|
||||||
ServerAdmin webmaster@localhost
|
ServerAdmin webmaster@localhost
|
||||||
@ -16,4 +18,28 @@
|
|||||||
GnuTLSPriorities NORMAL
|
GnuTLSPriorities NORMAL
|
||||||
</VirtualHost>
|
</VirtualHost>
|
||||||
</IfModule>
|
</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>
|
</Macro>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user