We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e9cde48 commit bcc341aCopy full SHA for bcc341a
setup/web_server_configuration.rst
@@ -287,6 +287,13 @@ The **minimum configuration** to get your application running under Nginx is:
287
# try to serve file directly, fallback to index.php
288
try_files $uri /index.php$is_args$args;
289
}
290
+
291
+ # optionally disable falling back to php script for the asset directories
292
+ # which will allow nginx to return a 404 error when files are
293
+ # not found instead of passing the request to Symfony
294
+ location /bundles {
295
+ try_files $uri $uri/ =404;
296
+ }
297
298
location ~ ^/index\.php(/|$) {
299
fastcgi_pass unix:/var/run/php/php7.2-fpm.sock;
0 commit comments