docker-laravel/config
Fabian @ Blax Software 2d6d6383de feat(nginx): internal /_accel/ location for X-Accel-Redirect from storage/app
An app that has authorised a file can answer with an empty body and
"X-Accel-Redirect: /_accel/<path under storage/app>"; nginx then sends the file
itself (Range requests included). The location re-adds the CORS headers from the
upstream response, which nginx otherwise drops on this redirect. The php location
announces it to PHP as $_SERVER['X_ACCEL_STORAGE'] = '/_accel/'.

Harmless for an app that does not use it: the location is `internal`, reached
only through an X-Accel-Redirect the app itself returns, so no response of such
an app changes. The one visible difference is that an external request to
/_accel/... gets nginx's 404 instead of reaching the app's front controller; no
app here routes under /_accel/. The fastcgi param only adds a server variable
nothing reads unless the app asks for it (it is not a request header, so it
changes no headers, and Symfony's own X-Sendfile support ignores it). nginx -t
passes on 1.26.3.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-04 11:58:52 +01:00
..
supervisor Initial commit: multi-version PHP+Nginx Docker image for Laravel 2026-04-15 09:57:37 +02:00
default.conf feat(nginx): internal /_accel/ location for X-Accel-Redirect from storage/app 2026-11-04 11:58:52 +01:00
nginx.conf Initial commit: multi-version PHP+Nginx Docker image for Laravel 2026-04-15 09:57:37 +02:00
opcache.ini Initial commit: multi-version PHP+Nginx Docker image for Laravel 2026-04-15 09:57:37 +02:00
php.ini harden: session.upload_progress.enabled off by default (PHP2Shell, CVE-2026-109618) 2026-10-21 16:23:08 +02:00
supervisord.conf Initial commit: multi-version PHP+Nginx Docker image for Laravel 2026-04-15 09:57:37 +02:00