diff --git a/src/pretix/base/templates/400_hostname.html b/src/pretix/base/templates/400_hostname.html new file mode 100644 index 0000000000..881d0582c5 --- /dev/null +++ b/src/pretix/base/templates/400_hostname.html @@ -0,0 +1,52 @@ +{% extends "error.html" %} +{% load i18n %} +{% load static %} +{% block title %}{% trans "Unknown host" %}{% endblock %} +{% block content %} + +
+ {% blocktrans trimmed with host=header_host %} + Your browser told us that you want to access "{{ header_host }}". Unfortunately, we don't have + any content for this domain. + {% endblocktrans %} +
+ {% if is_fresh_install %} ++ {% blocktrans trimmed %} + It looks like this is a fresh installation of pretix. This error message is probably caused due to + the fact that either your configuration includes the wrong site URL or your reverse proxy is sending + the wrong header. + {% endblocktrans %} +
+{{ site_host }}Host: {{ request.headers.Host }}
+ {% if xfh %}
+ X-Forwarded-For: {{ xfh }}
+ {% if not settings.USE_X_FORWARDED_HOST %}({% trans "ignored" %}){% endif %}
+ {% endif %}
+ {{ header_host }}+ {% blocktrans trimmed %} + If you just configured this as a domain for your ticket shop, you now need to set this up as a "custom domain" + in your organizer account. + {% endblocktrans %} +
+ {% endif %} ++ {% trans "Take a step back" %} + · {% trans "Try again" %} +
+