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:
306306 # Remove the internal directive to allow URIs like this
307307 internal;
308308 }
309-
309+
310310 # return 404 for all other php files not matching the front controller
311311 # this prevents access to other php files you don't want to be accessible.
312312 location ~ \.php$ {
@@ -336,6 +336,13 @@ The **minimum configuration** to get your application running under Nginx is:
336336 or ``config.php `` scripts (i.e. ``http://example.com/app_dev.php `` and ``http://example.com/config.php ``).
337337 If you *can * access these, be sure to remove the ``DEV `` section from the above configuration.
338338
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+
339346For advanced Nginx configuration options, read the official `Nginx documentation `_.
340347
341348.. _`Apache documentation` : http://httpd.apache.org/docs/
You can’t perform that action at this time.
0 commit comments