Category: nginx

Exception should not appear in prod

I have this kind of exception, on a production environnement: Fatal error: Uncaught RuntimeException: Unable to create the cache directory (/app/ezplatform/var/cache/prod/a6d61d85393d8924b6a2d32272d325510651f125) in /app/ezplatform/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/Kernel.php:765 Stack trace: #0 /app/ezplatform/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/Kernel.php(642): SymfonyComponentHttpKernelKernel->buildContainer() #1 /app/ezplatform/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/Kernel.php(135): SymfonyComponentHttpKernelKernel->initializeContainer() #2 /app/ezplatform/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/Kernel.php(195): SymfonyComponentHttpKernelKernel->boot() #3 /app/ezplatform/web/app.php(64): SymfonyComponentHttpKernelKernel->handle(Object(SymfonyComponentHttpFoundationRequest)) 4 {main} thrown…

nginx XSendfile "rewrite or internal redirection cycle …" using nginx docker image

I’m working on a PHP application which runs using a docker-compose stack with a seperate nginx container for the HTTP handling. I’m trying to serve static files through PHP and NGINX using NGINX’s XSendfile feature. While this works locally IF…