diff --git a/src/variations/fpm-nginx/etc/nginx/server-opts.d/performance.conf b/src/variations/fpm-nginx/etc/nginx/server-opts.d/performance.conf index 6707c1a03..143877209 100644 --- a/src/variations/fpm-nginx/etc/nginx/server-opts.d/performance.conf +++ b/src/variations/fpm-nginx/etc/nginx/server-opts.d/performance.conf @@ -26,6 +26,8 @@ location ~* \.(?:ttf|ttc|otf|eot|woff2?)$ { add_header Access-Control-Allow-Origin "*"; add_header Cache-Control "public, max-age=31536000, immutable"; access_log off; + # Pass to PHP to ensure PHP apps can handle routes that end in these filetypes + try_files $uri /index.php?$query_string; } # gzip