File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -306,7 +306,7 @@ The **minimum configuration** to get your application running under Nginx is:
306
306
# Remove the internal directive to allow URIs like this
307
307
internal;
308
308
}
309
-
309
+
310
310
# return 404 for all other php files not matching the front controller
311
311
# this prevents access to other php files you don't want to be accessible.
312
312
location ~ \.php$ {
@@ -336,6 +336,13 @@ The **minimum configuration** to get your application running under Nginx is:
336
336
or ``config.php `` scripts (i.e. ``http://example.com/app_dev.php `` and ``http://example.com/config.php ``).
337
337
If you *can * access these, be sure to remove the ``DEV `` section from the above configuration.
338
338
339
+ .. note ::
340
+
341
+ By default, Symfony applications include several ``.htaccess `` files to
342
+ configure redirections and to prevent unauthorized access to some sensitive
343
+ directories. Those files are only useful when using Apache, so you can
344
+ safely remove them when using Nginx.
345
+
339
346
For advanced Nginx configuration options, read the official `Nginx documentation `_.
340
347
341
348
.. _`Apache documentation` : http://httpd.apache.org/docs/
You can’t perform that action at this time.
0 commit comments