diff --git a/inventory/group_vars/libravatar-stg b/inventory/group_vars/libravatar-stg index 66c600413c..7ce0c6f41e 100644 --- a/inventory/group_vars/libravatar-stg +++ b/inventory/group_vars/libravatar-stg @@ -1,3 +1,6 @@ resolvconf: "resolv.conf/cloud" git_branch: devel server_name: libravatar-stg.fedorainfracloud.org +cdn_server_name: libravatar-stg.fedorainfracloud.org +cdn_server_alias: 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 66e5ec2f76..e4791f1558 100644 --- a/roles/libravatar/templates/httpd/libravatar.conf +++ b/roles/libravatar/templates/httpd/libravatar.conf @@ -17,7 +17,6 @@ RewriteEngine on RewriteRule "^/?(.*)" "https://%{HTTP_HOST}/$1" [L,R=301,NE] -{% if cdn_server_name is defined and cdn_server_alias is defined %} ServerName {{ cdn_server_name }} ServerAlias {{ cdn_server_alias }} @@ -31,7 +30,6 @@ RewriteEngine on Include /etc/httpd/conf.d/libravatar-app.include -{% endif %} ServerName {{ server_name }} @@ -46,7 +44,6 @@ RewriteEngine on Include /etc/httpd/conf.d/libravatar-app.include -{% if server_redirect_name is defined %} ServerAlias {{ server_redirect_name }} @@ -57,7 +54,6 @@ RewriteEngine on RewriteRule "^/?(.*)" "https://{{ server_name }}/$1" [L,R=301,NE] -{% endif %} ExtendedStatus On