Skip to content

Commit 1ac8f00

Browse files
angelakuznetsovacodyfinegan
authored andcommitted
nginx fix
1 parent a368b6f commit 1ac8f00

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

nginx/config/local-server.conf

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,11 @@ location ~ [^/]\.php(/|$) {
3939
fastcgi_buffer_size 32k;
4040
}
4141

42-
# serve static files directly
42+
# serve static files directly, fall through to front controller if not found.
43+
# This is needed for v21+ installs where static assets (amd/build/, pix/, fonts/)
44+
# live under server/ not public/, so nginx can't serve them directly.
4345
location ~* ^.+.(jpg|jpeg|gif|css|png|js|ico|html|xml|txt)$ {
4446
access_log off;
4547
expires max;
48+
try_files $uri /index.php?$query_string;
4649
}

0 commit comments

Comments
 (0)