# Bearbeitung der config.php

**URL:** <https://forum.shopware.com/t/bearbeitung-der-config-php/42602>\
**Category:** Programmierung\
**Created:** [6. Januar 2017 um 11:39 UTC](https://forum.shopware.com/t/bearbeitung-der-config-php/42602 "2017-01-06T11:39:19Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![myartstore](https://avatars.discourse-cdn.com/v4/letter/m/7ea924/32.png) [@myartstore](https://forum.shopware.com/u/myartstore)\
**Post date:** [6. Januar 2017 um 11:39 UTC](https://forum.shopware.com/t/bearbeitung-der-config-php/42602/1 "2017-01-06T11:39:19Z")

</div>

hallo,

ich würde gerne in meiner config.php gerne gemäß&nbsp;[Varnish Setup](https://developers.shopware.com/sysadmins-guide/varnish-setup/#common-issues) den reverse proxy mit dem zusatz

‘httpCache’ =\> array( ‘enabled’ =\> false, ),

deaktivieren.

aber ich bin laie und egal wie ich das einbaue, der shop zeigt dann eine 500 fehlermeldung. ich hoffe jemand kann mir helfen , so sieht meine config.php jetzt aus:

\<?php   
 return array( &nbsp; &nbsp; 'db' =\\> array( &nbsp; &nbsp; &nbsp; &nbsp; 'username' =\\> 'xxxxxx', &nbsp; &nbsp; &nbsp; &nbsp; 'password' =\\> 'xxxxxx', &nbsp; &nbsp; &nbsp; &nbsp; 'dbname' =\\> 'xxxxxx', &nbsp; &nbsp; &nbsp; &nbsp; 'host' =\\> 'xxxxxx', &nbsp; &nbsp; &nbsp; &nbsp; 'port' =\\> 'xxxx' &nbsp; grüße, bernd.

---

<div class="post-metadata">

**Author:** ![MBDealer](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/mbdealer/32/27217_2.png) [@MBDealer](https://forum.shopware.com/u/MBDealer)\
**Post date:** [6. Januar 2017 um 11:46 UTC](https://forum.shopware.com/t/bearbeitung-der-config-php/42602/2 "2017-01-06T11:46:47Z")

</div>

So wäre es richtig:

\<?php return array ( 'db' =\>&nbsp; &nbsp;&nbsp;array ( &nbsp;&nbsp;&nbsp;&nbsp;'host' =\\> 'localhost', &nbsp;&nbsp;&nbsp;&nbsp;'port' =\\> '3306', &nbsp;&nbsp;&nbsp;&nbsp;'username' =\\> 'xxx', &nbsp;&nbsp;&nbsp;&nbsp;'password' =\\> 'xxx', &nbsp;&nbsp;&nbsp;&nbsp;'dbname' =\\> 'xxx', &nbsp;&nbsp;), 'httpCache' =\\> array( 'enabled' =\\> false, ), ); Und ändere bitte dein Datenbank-Passwort.

---

<div class="post-metadata">

**Author:** ![myartstore](https://avatars.discourse-cdn.com/v4/letter/m/7ea924/32.png) [@myartstore](https://forum.shopware.com/u/myartstore)\
**Post date:** [6. Januar 2017 um 11:58 UTC](https://forum.shopware.com/t/bearbeitung-der-config-php/42602/3 "2017-01-06T11:58:14Z")

</div>

Besten Dank ! Hat jetzt funktioniert, aber leider nicht wie erhofft meinen Revese-Proxy- Fehler beseitigt.

Hast Du eine Vermutung woran das sonst leigen könnte ? :

Message:

```
 Reverse proxy returned invalid status code

```

Time:

```
 2017-01-06T12:56:13.332972+0100

```

Channel:

```
 core

```

Context:

```
 { "response": ""-//IETF//DTD HTML 2.0//EN\"\>\n\n<title>501 Method Not Implemented</title>\n\n
# Method Not Implemented
\n

BAN to /server.shtml not supported.  
\n

\n\n", "code": 501 }

```

request:

```
 { "uri": "/backend/Cache/clearDirect?cache=Config&\_dc=1483703770542", "method": "GET", "query": { "cache": "Config", "\_dc": "1483703770542", "module": "backend", "controller": "Cache", "action": "clearDirect" }, "post": [] }

```

shop:

```
 No shop data available

```

session:

```
 { "userId": "50", "roleId": "1" }
```

---

<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:** [6. Januar 2017 um 12:35 UTC](https://forum.shopware.com/t/bearbeitung-der-config-php/42602/4 "2017-01-06T12:35:19Z")

</div>

Naja, du hast den HTTP-Cache jetzt abgeschaltet, dass wäre eine ziemlich komische Lösung. Die Meldung ist ja erstmal nur ein Hinweis und keine Fehlermeldung, dadurch geht ja nix kaputt.

&nbsp;

---

<div class="post-metadata">

**Author:** ![myartstore](https://avatars.discourse-cdn.com/v4/letter/m/7ea924/32.png) [@myartstore](https://forum.shopware.com/u/myartstore)\
**Post date:** [6. Januar 2017 um 12:38 UTC](https://forum.shopware.com/t/bearbeitung-der-config-php/42602/5 "2017-01-06T12:38:46Z")

</div>

ok, verstanden, danke.
