# Adminbereich lädt nicht bei aktiviertem Verzeichnisschutz (nur weiße Seite nach Login)

**URL:** <https://forum.shopware.com/t/adminbereich-ladt-nicht-bei-aktiviertem-verzeichnisschutz-nur-weisse-seite-nach-login/64394>\
**Category:** Administration\
**Created:** [31. Januar 2020 um 13:56 UTC](https://forum.shopware.com/t/adminbereich-ladt-nicht-bei-aktiviertem-verzeichnisschutz-nur-weisse-seite-nach-login/64394 "2020-01-31T13:56:31Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![compragmbh](https://avatars.discourse-cdn.com/v4/letter/c/d07c76/32.png) [@compragmbh](https://forum.shopware.com/u/compragmbh)\
**Post date:** [31. Januar 2020 um 13:56 UTC](https://forum.shopware.com/t/adminbereich-ladt-nicht-bei-aktiviertem-verzeichnisschutz-nur-weisse-seite-nach-login/64394/1 "2020-01-31T13:56:31Z")

</div>

Hallo Zusammen,

Wir haben aktuell in unseren SW6 Shops das Problem, dass der Adminbereich mit aktiviertem Verzeichnisschutz (.htaccess + .htpasswd) nicht mehr funktioniert.  
Nach dem Login wird nur eine weiße Seite geladen.

In der Log-Datei (var/log) werden bspw. folgende Meldungen geschrieben:

```
Uncaught PHP Exception Symfony\Component\HttpKernel\Exception\NotFoundHttpException: "No route found for "GET /bundles/administration/static/img/favicon/favicon-16x16.png"" at /var/www/clients/client47/web321/web/vendor/symfony/http-kernel/EventListener/RouterListener.php line 136 {"exception":"[object] (Symfony\\Component\\HttpKernel\\Exception\\NotFoundHttpException(code: 0): No route found for \"GET /bundles/administration/static/img/favicon/favicon-16x16.png\" at /var/www/clients/client47/web321/web/vendor/symfony/http-kernel/EventListener/RouterListener.php:136, Symfony\\Component\\Routing\\Exception\\ResourceNotFoundException(code: 0): No routes found for \"/bundles/administration/static/img/favicon/favicon-16x16.png/\". at /var/www/clients/client47/web321/web/vendor/symfony/routing/Matcher/Dumper/CompiledUrlMatcherTrait.php:70)"} []

```

oder

```
Uncaught PHP Exception Symfony\Component\HttpKernel\Exception\NotFoundHttpException: "No route found for "GET /bundles/administration/static/img/favicon/android-chrome-256x256.png"" at /var/www/clients/client47/web321/web/vendor/symfony/http-kernel/EventListener/RouterListener.php line 136 {"exception":"[object] (Symfony\\Component\\HttpKernel\\Exception\\NotFoundHttpException(code: 0): No route found for \"GET /bundles/administration/static/img/favicon/android-chrome-256x256.png\" at /var/www/clients/client47/web321/web/vendor/symfony/http-kernel/EventListener/RouterListener.php:136, Symfony\\Component\\Routing\\Exception\\ResourceNotFoundException(code: 0): No routes found for \"/bundles/administration/static/img/favicon/android-chrome-256x256.png/\". at /var/www/clients/client47/web321/web/vendor/symfony/routing/Matcher/Dumper/CompiledUrlMatcherTrait.php:70)"} []

```

&nbsp;

Ich vermute, dass versucht wird die entsprechenden Bilder/Icons für den Adminbereich zu laden, dies allerdings per Request nicht funktioniert, da aufgrund des Verzeichnisschutzes ein Benutzer+Passwort benötigt wird.

Gibt es Ideen/Lösungen, wie wir dieses Problem beheben können?

&nbsp;

Viele Grüße  
Dennis

---

<div class="post-metadata">

**Author:** ![sonic](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/sonic/32/25728_2.png) [@sonic](https://forum.shopware.com/u/sonic)\
**Post date:** [31. Januar 2020 um 14:06 UTC](https://forum.shopware.com/t/adminbereich-ladt-nicht-bei-aktiviertem-verzeichnisschutz-nur-weisse-seite-nach-login/64394/2 "2020-01-31T14:06:09Z")

</div>

Guck mal, ob es so geht:  
[https://forum.shopware.com/discussion/comment/252256/#Comment\_252256](https://forum.shopware.com/discussion/comment/252256/#Comment_252256)

---

<div class="post-metadata">

**Author:** ![oliverriske](https://avatars.discourse-cdn.com/v4/letter/o/ebca7d/32.png) [@oliverriske](https://forum.shopware.com/u/oliverriske)\
**Post date:** [31. Januar 2020 um 14:14 UTC](https://forum.shopware.com/t/adminbereich-ladt-nicht-bei-aktiviertem-verzeichnisschutz-nur-weisse-seite-nach-login/64394/3 "2020-01-31T14:14:03Z")

</div>

Hallo

in der Virtual-Host Configuration kann man die API und Admin routen vom .htAccess Schutz ausnehmen.

Hier ein Beispiel für nginx:

server {

…

location ~ .php$ {  
&nbsp; &nbsp; &nbsp; &nbsp; fastcgi\_split\_path\_info ^(.+.php)(/.+)$;  
&nbsp; &nbsp; &nbsp; &nbsp; include fastcgi.conf;  
&nbsp; &nbsp; &nbsp; &nbsp; fastcgi\_param HTTP\_PROXY “”;  
&nbsp; &nbsp; &nbsp; &nbsp; fastcgi\_buffers 8 16k;  
&nbsp; &nbsp; &nbsp; &nbsp; fastcgi\_buffer\_size 32k;  
&nbsp; &nbsp; &nbsp; &nbsp; client\_max\_body\_size 24M;  
&nbsp; &nbsp; &nbsp; &nbsp; client\_body\_buffer\_size 128k;  
&nbsp; &nbsp; &nbsp; &nbsp; fastcgi\_pass unix:/run/php/php7.4-fpm.sock;  
&nbsp; &nbsp; &nbsp; &nbsp; http2\_push\_preload on;  
&nbsp; &nbsp; &nbsp; **&nbsp; set $auth “Restricted”;  
&nbsp; &nbsp; &nbsp; &nbsp; if (request\_uri ~ /api/.\*){  
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; set $auth “off”;  
&nbsp; &nbsp; &nbsp; &nbsp; }  
&nbsp; &nbsp; &nbsp; &nbsp; if (request\_uri ~ /admin.\*){  
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;set $auth “off”;  
&nbsp; &nbsp; &nbsp; &nbsp; }  
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;if (request\_uri ~ /bundles/swagpaypal/.\*){  
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;set $auth “off”;  
&nbsp; &nbsp; &nbsp; &nbsp; }**

**&nbsp; &nbsp; &nbsp; &nbsp; auth\_basic $auth;  
&nbsp; &nbsp; &nbsp; &nbsp; auth\_basic\_user\_file /etc/nginx/.htpasswd;**

&nbsp; &nbsp; }
