After updating to 2026-05a, all bundled cache resources return 404:
- /cache/HASH.css → 404
- /cache/HASH.js → 404
- Login page loads unstyled
Root cause:
The nginx location:
location ~ ^/cache/(.*)$ {
try_files $uri $uri/ /resource.php?file=$1;
}
Does not work in the newer nginx version included in the 2026-05a image.
try_files with query string in regex location fallback fails silently —
PHP never receives the request.
Workaround that works:
location ~ ^/cache/(.)$ {
rewrite ^/cache/(.)$ /resource.php?file=$1 last;
}
Tested: direct /resource.php?file=HASH.css returns 200, but /cache/HASH.css
returns 404. PHP debug log confirms PHP never gets invoked via try_files path.
Environment:
- mailcow tag: 2026-05a
- Update from: 2026-04 → 2026-05a
- nginx version: (from current mailcow nginx image)