File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -294,13 +294,13 @@ The **minimum configuration** to get your application running under Nginx is:
294
294
# try to serve file directly, fallback to index.php
295
295
try_files $uri /index.php$is_args$args;
296
296
}
297
-
298
- # optionally disable falling back to php script for the asset directories
299
- # which will allow nginx to return a 404 error when files are
300
- # not found instead of passing the request to Symfony
301
- location /bundles {
302
- try_files $uri $uri/ =404;
303
- }
297
+
298
+ # optionally disable falling back to PHP script for the asset directories;
299
+ # nginx will return a 404 error when files are not found instead of passing the
300
+ # request to Symfony (improves performance but Symfony's 404 page is not displayed)
301
+ # location /bundles {
302
+ # try_files $uri =404;
303
+ # }
304
304
305
305
location ~ ^/index\.php(/|$) {
306
306
fastcgi_pass unix:/var/run/php/php7.2-fpm.sock;
You can’t perform that action at this time.
0 commit comments