Skip to content

Commit 4f4ca2b

Browse files
turegjorupclaude
andcommitted
370: Fix nginx static-file location to fall back to PHP
The regex location for static files (jpg, png, etc.) had no try_files directive, so first-time requests to /media/cache/resolve/... 404'd without ever reaching Symfony. Adding the same fallback as location / lets LiipImagineBundle generate missing thumbnails on demand. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 0ee0f06 commit 4f4ca2b

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ All notable changes to this project will be documented in this file.
3636
- Removed fixture length check from test.
3737
- Added vitest for frontend unit tests.
3838
- Updated infrastructure and image build for mono-repo.
39+
- Fixed nginx static-file location to fall back to PHP so LiipImagineBundle can generate missing thumbnails (#370).
3940

4041
### NB! Prior to 3.x the project was split into separate repositories
4142

infrastructure/nginx/etc/templates/default.conf.template

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ server {
5959
expires 1y;
6060
add_header Cache-Control "public, immutable";
6161
access_log off;
62+
try_files $uri /index.php$is_args$args;
6263
}
6364

6465
# Screen client online check should just serve static files

0 commit comments

Comments
 (0)