diff --git a/roles/apache/templates/ssl.conf.j2 b/roles/apache/templates/ssl.conf.j2 index d9b9817..c24e7b3 100644 --- a/roles/apache/templates/ssl.conf.j2 +++ b/roles/apache/templates/ssl.conf.j2 @@ -58,7 +58,11 @@ SSLCryptoDevice builtin # General setup for the virtual host, inherited from global configuration #DocumentRoot "/var/www/html" +{% if apache_server_name is defined %} +ServerName {{ apache_server_name }} +{% else %} #ServerName www.example.com:443 +{% endif %} Include conf.d/ssl.include