23 lines
620 B
ApacheConf
23 lines
620 B
ApacheConf
# Configuration for {{ nextcloud_url }}
|
|
# vim:ft=apache:
|
|
# Ensure we listen on required ports
|
|
Listen 80
|
|
Listen 443
|
|
# Listen for virtual host requests
|
|
NameVirtualHost *:443
|
|
# Accept connections from non-SNI clients
|
|
SSLStrictSNIVHostCheck off
|
|
|
|
# Website configuration
|
|
<VirtualHost *:80>
|
|
ServerName {{ nextcloud_url }}
|
|
DocumentRoot {{ nextcloud_webroot }}
|
|
</VirtualHost>
|
|
<VirtualHost *:443>
|
|
SSLEngine on
|
|
SSLCertificateFile /etc/pki/cert/crt/{{ nextcloud_url }}.crt
|
|
SSLCertificateKeyFile /etc/pki/cert/private/{{ nextcloud_url }}.key
|
|
ServerName {{ nextcloud_url }}
|
|
DocumentRoot {{ nextcloud_webroot }}
|
|
</VirtualHost>
|