Skip to content

Commit dcf06e3

Browse files
committed
[symfony#2508] Adding extra warning about app_dev.php and config.php
1 parent 5ec276f commit dcf06e3

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

cookbook/configuration/web_server_configuration.rst

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -85,9 +85,13 @@ are:
8585
.. tip::
8686

8787
This executes **only** ``app.php``, ``app_dev.php`` and ``config.php`` in
88-
the web directory. All other files will be served as text. If you have
89-
other PHP files in your web directory, be sure to include them in the
90-
``location`` block above.
88+
the web directory. All other files will be served as text. You **must**
89+
also make sure that if you *do* deploy ``app_dev.php`` or ``config.php``
90+
that these files are secured and not available to any outside user (the
91+
IP checking code at the top of each file does this by default).
92+
93+
If you have other PHP files in your web directory that need to be executed,
94+
be sure to include them in the ``location`` block above.
9195

9296
.. _`Apache`: http://httpd.apache.org/docs/current/mod/core.html#documentroot
9397
.. _`Nginx`: http://wiki.nginx.org/Symfony

0 commit comments

Comments
 (0)