# Shopware hinter Caddy Reverse Proxy ergibt Internal Server Error

**URL:** <https://forum.shopware.com/t/shopware-hinter-caddy-reverse-proxy-ergibt-internal-server-error/89305>\
**Category:** Installation / Einstieg\
**Created:** [21. Juli 2021 um 13:23 UTC](https://forum.shopware.com/t/shopware-hinter-caddy-reverse-proxy-ergibt-internal-server-error/89305 "2021-07-21T13:23:45Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ebrithil](https://avatars.discourse-cdn.com/v4/letter/e/ac8455/32.png) [@ebrithil](https://forum.shopware.com/u/ebrithil)\
**Post date:** [21. Juli 2021 um 13:23 UTC](https://forum.shopware.com/t/shopware-hinter-caddy-reverse-proxy-ergibt-internal-server-error/89305/1 "2021-07-21T13:23:45Z")

</div>

Hallo Zusammen

Ich habe Shopware 6.4.2.1 mittels dieser [Anleitung](https://www.osradar.com/how-to-install-shopware-debian-10/) auf einem Debian 10 LXC in Proxmox aufgesetzt. Wenn ich auf die Webseite über die Interne IP-Adresse des Containers zugreife, funktioniert alles ohne Probleme. Doch sobald ich über mein Caddy Reverse Proxy auf Shopware zugreiffen will, kommt immer nur :

> The server returned a „500 Internal Server Error“.

Meine Apache config sieht so aus:

```auto
<VirtualHost *:80>

	ServerAdmin webmaster@localhost
	DocumentRoot /var/www/html/shopware/public

	<Directory /var/www/html/shopware/public>
        Options FollowSymlinks
        AllowOverride All
        Require all granted
    </Directory>

	ErrorLog ${APACHE_LOG_DIR}/error.log
	CustomLog ${APACHE_LOG_DIR}/access.log combined

</VirtualHost>

```

Und die Caddy Config so:

```auto
meinewebseite.ch {
	reverse_proxy 192.168.5.6
}

```

Für andere Dienste welche ich auf die selbe Art (LXC mit Apache und Caddy Reverse Proxy) funktionert das selbe Setup (z.B. Nexcloud).

Woran könnte das liegen?

Freundliche Grüsse

Ebrithil

---

<div class="post-metadata">

**Author:** ![Moritz\_Naczenski](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/moritz_naczenski/32/7792_2.png) [@Moritz\_Naczenski](https://forum.shopware.com/u/Moritz_Naczenski)\
**Post date:** [22. Juli 2021 um 07:18 UTC](https://forum.shopware.com/t/shopware-hinter-caddy-reverse-proxy-ergibt-internal-server-error/89305/2 "2021-07-22T07:18:42Z")

</div>

Hast du denn Shopware gesagt, dass es dem Proxy vertrauen soll?

> **[How to Configure Symfony to Work behind a Load Balancer or a Reverse Proxy...](https://symfony.com/doc/current/deployment/proxies.html)**
>
> How to Configure Symfony to Work behind a Load Balancer or a Reverse Proxy: When you deploy your application, you may be behind a load balancer (e.g. an AWS Elastic Load Balancing) or a reverse proxy ...

Das kannst du in der .env Datei einstellen.

---

<div class="post-metadata">

**Author:** ![ebrithil](https://avatars.discourse-cdn.com/v4/letter/e/ac8455/32.png) [@ebrithil](https://forum.shopware.com/u/ebrithil)\
**Post date:** [22. Juli 2021 um 08:14 UTC](https://forum.shopware.com/t/shopware-hinter-caddy-reverse-proxy-ergibt-internal-server-error/89305/3 "2021-07-22T08:14:46Z")

</div>

Ja, ich hatte es einfach über ein shell script in eine enviroment variable geschrieben und habe es jetzt auch noch mit dem „.env“ file versucht. Kommt aber immer noch der genau gleiche Fehler.
