File tree 1 file changed +17
-1
lines changed
1 file changed +17
-1
lines changed Original file line number Diff line number Diff line change @@ -57,7 +57,7 @@ something like this:
57
57
58
58
.. code-block :: text
59
59
60
- www/ <- your web root directory
60
+ www/ <- your web server directory (sometimes named htdocs or public)
61
61
Symfony/ <- the unpacked archive
62
62
app/
63
63
cache/
@@ -77,6 +77,22 @@ something like this:
77
77
:doc: `/cookbook/configuration/override_dir_structure ` for more
78
78
information.
79
79
80
+ All public files and the front controller that handles incoming requests in
81
+ a Symfony2 application live in the ``Symfony/web/ `` directory. So, assuming
82
+ you unpacked the archive into your web server's or virtual host's document root,
83
+ your application's URLs will start with ``http://localhost/Symfony/web/ ``.
84
+ To get nice and short URLs you should point the document root of your web
85
+ server or virtual host to the ``Symfony/web/ `` directory. Though this is not
86
+ required for development it is recommended when your application goes into
87
+ production as all system and configuration files become inaccessible to clients.
88
+ For information on configuring your specific web server document root, see
89
+ the following documentation: `Apache `_ | `Nginx `_ .
90
+
91
+ .. note ::
92
+
93
+ The following examples assume you don't touch the document root settings
94
+ so all URLs start with ``http://localhost/Symfony/web/ ``
95
+
80
96
Updating Vendors
81
97
~~~~~~~~~~~~~~~~
82
98
You can’t perform that action at this time.
0 commit comments