{% if debug %}
Sorry, we couldn't find a Sales Channel for the current URL. Please check the URL and try again.
For more information, enable the debug mode in the .env with APP_DEBUG=1
Dear Visitor, you accessed Shopware 6 with an unknown Domain. This page provides guidance on common misconfigurations and how to resolve them.
Following URLs are known to Shopware: {% for domain in registeredDomains %}{{ domain }}, {% endfor %}
{{ domain }}Symptoms: Cannot resolve a Sales Channel, Assets are loading with http instead of https.
Make sure the visible URL is the actual URL in your browser: {{ accessedUrl }}. If not, the proxy configuration could be wrong.
Shopware got following headers from IP {{ clientIp }}:
{{ relevantHeaders|json_encode(constant('JSON_PRETTY_PRINT')) }}
The trusted_proxy configuration could look like this:
# config/packages/framework.yaml
framework:
# You can use multiple with comma separated values or subnet notation (10.0.0.0/8)
trusted_proxies: '{{ clientIp }}'
# trust *all* "X-Forwarded-*" headers
trusted_headers: [{% for key in trustedProxyRelevantHeaders %} '{{ key }}', {% endfor %}]
{% if trustedProxyRelevantHeaders is empty %}
We could not determine any proxy header, make sure your reverse proxy forwards headers like X-Forwarded-For, X-Forwarded-Host, X-Forwarded-Proto
{% endif %}
For further information about Trusted Proxies and configuration and handling of load balancer, checkout the Symfony documentation