diff --git a/smartgears/smartgears/templates/container.xml.j2 b/smartgears/smartgears/templates/container.xml.j2
index 961537b9..5f489076 100644
--- a/smartgears/smartgears/templates/container.xml.j2
+++ b/smartgears/smartgears/templates/container.xml.j2
@@ -2,20 +2,14 @@
{{ smartgears_hostname }}
{% if setup_nginx %}
- {% if https_port is defined %}
- {% if http_redirect_to_https is defined and http_redirect_to_https %}
- {{ https_port }}
- {% else %}
{{ http_port }}
- {% endif %}
{% else %}
{%if http_port is defined %}
{{ http_port }}
- {% endif %}
- {% endif %}
{% else %}
{{ item.http_port }}
{% endif %}
+ {% endif %}
{{ smartgears_country }}