diff --git a/inventory/group_vars/libravatar b/inventory/group_vars/libravatar
index efbd26fd3b..c2e614ad2d 100644
--- a/inventory/group_vars/libravatar
+++ b/inventory/group_vars/libravatar
@@ -1,6 +1,5 @@
resolvconf: "resolv.conf/cloud"
git_branch: master
server_name: www.libravatar.org
-server_alias: "*.libravatar.org"
server_seccdn_name: seccdn.libravatar.org
-server_redirect_name: "libravatar.org libravatar.com www.libravatar.com apt.libravatar.org grindavik.libravatar.org"
+server_redirect_name: "libravatar.org libravatar.com www.libravatar.com apt.libravatar.org grindavik.libravatar.org cdn.libravatar.org"
diff --git a/inventory/group_vars/libravatar-stg b/inventory/group_vars/libravatar-stg
index 1107c12592..d6e4772d25 100644
--- a/inventory/group_vars/libravatar-stg
+++ b/inventory/group_vars/libravatar-stg
@@ -1,6 +1,5 @@
resolvconf: "resolv.conf/cloud"
git_branch: devel
server_name: libravatar-stg.fedorainfracloud.org
-server_alias: libravatar-stg.fedorainfracloud.org
server_seccdn_name: libravatar-stg.fedorainfracloud.org
server_redirect_name: libravatar-stg.fedorainfracloud.org
diff --git a/roles/libravatar/templates/httpd/libravatar.conf b/roles/libravatar/templates/httpd/libravatar.conf
index adebf87472..2eb5027f1c 100644
--- a/roles/libravatar/templates/httpd/libravatar.conf
+++ b/roles/libravatar/templates/httpd/libravatar.conf
@@ -12,7 +12,7 @@ RewriteEngine on
ServerName {{ server_name }}
- ServerAlias {{ server_redirect_name }} {{ server_alias }}
+ ServerAlias {{ server_redirect_name }}
RewriteRule ^/\.well-known/(.*) /var/www/html/.well-known/$1 [L]
RewriteRule "^/?(.*)" "https://{{ server_name }}/$1" [L,R=301,NE]
@@ -30,20 +30,8 @@ RewriteEngine on
Include /etc/httpd/conf.d/libravatar-app.include
-
- ServerAlias {{ server_redirect_name }}
-
- SSLCertificateFile /etc/letsencrypt/live/{{ server_name }}/cert.pem
- SSLCertificateKeyFile /etc/letsencrypt/live/{{ server_name }}/privkey.pem
- SSLCertificateChainFile /etc/letsencrypt/live/{{ server_name }}/fullchain.pem
- Header always add Strict-Transport-Security "max-age=31536000; preload"
-
- RewriteRule "^/?(.*)" "https://{{ server_name }}/$1" [L,R=301,NE]
-
-
ServerName {{ server_name }}
- ServerAlias {{ server_alias }}
SSLCertificateFile /etc/letsencrypt/live/{{ server_name }}/cert.pem
SSLCertificateKeyFile /etc/letsencrypt/live/{{ server_name }}/privkey.pem
@@ -55,6 +43,17 @@ RewriteEngine on
Include /etc/httpd/conf.d/libravatar-app.include
+
+ ServerAlias {{ server_redirect_name }}
+
+ SSLCertificateFile /etc/letsencrypt/live/{{ server_name }}/cert.pem
+ SSLCertificateKeyFile /etc/letsencrypt/live/{{ server_name }}/privkey.pem
+ SSLCertificateChainFile /etc/letsencrypt/live/{{ server_name }}/fullchain.pem
+ Header always add Strict-Transport-Security "max-age=31536000; preload"
+
+ RewriteRule "^/?(.*)" "https://{{ server_name }}/$1" [L,R=301,NE]
+
+
ExtendedStatus On