@@ -63,13 +63,13 @@ Enabling PHP-FPM
63
63
When the server starts it will check for common patterns like ``web/app.php ``,
64
64
``web/app_dev.php `` or ``public/index.php ``. If a file like this is found the
65
65
server will automatically start with PHP-FPM enabled. Otherwise the server will
66
- start without PHP-FPM and will show a ``Page not found `` page when trying to
66
+ start without PHP-FPM and will show a ``Page not found `` page when trying to
67
67
access a ``.php `` file in the browser.
68
68
69
69
.. tip ::
70
70
71
71
When an ``index.html `` and a front controller like e.g. ``index.php `` are
72
- both present the server will still start with PHP-FPM enabled but the
72
+ both present the server will still start with PHP-FPM enabled but the
73
73
``index.html `` will take precedence over the front controller. This means
74
74
when an ``index.html `` file is present in ``public `` or ``web ``, it will be
75
75
displayed instead of the ``index.php `` which would show e.g. the Symfony
@@ -181,19 +181,28 @@ local IP. However, sometimes it is preferable to associate a domain name to them
181
181
Setting up the Local Proxy
182
182
~~~~~~~~~~~~~~~~~~~~~~~~~~
183
183
184
- Local domains are possible thanks to a local proxy provided by the Symfony
185
- server. First, start the proxy:
184
+ Local domains are possible thanks to a local proxy provided by the Symfony server.
185
+ If this is the first time you run the proxy, you must configure it as follows:
186
+
187
+ #. Open the **proxy settings ** of your operating system:
188
+
189
+ * `Proxy settings in Windows `_;
190
+ * `Proxy settings in macOS `_;
191
+ * `Proxy settings in Ubuntu `_.
192
+
193
+ #. Set the following URL as the value of the **Automatic Proxy Configuration **:
194
+ ``http://127.0.0.1:7080/proxy.pac ``
195
+
196
+ Now run this command to start the proxy:
186
197
187
198
.. code-block :: terminal
188
199
189
200
$ symfony proxy:start
190
201
191
- If this is the first time you run the proxy, you must configure it as follows :
202
+ .. note : :
192
203
193
- * Open the **proxy settings ** of your operating system (`proxy settings in Windows `_,
194
- `proxy settings in macOS `_, `proxy settings in Ubuntu `_);
195
- * Set the following URL as the value of the **Automatic Proxy Configuration **:
196
- ``http://127.0.0.1:7080/proxy.pac ``
204
+ Some browsers (e.g. Chrome) require a full restart after starting the proxy.
205
+ Otherwise, you'll see a *"This webpage is not available" * error (``ERR_NAME_NOT_RESOLVED ``).
197
206
198
207
Defining the Local Domain
199
208
~~~~~~~~~~~~~~~~~~~~~~~~~
@@ -407,6 +416,6 @@ that Composer will also set the stability to ``dev`` for all root dependencies):
407
416
.. _`Docker` : https://en.wikipedia.org/wiki/Docker_(software)
408
417
.. _`SymfonyCloud` : https://symfony.com/cloud/
409
418
.. _`Read SymfonyCloud technical docs` : https://symfony.com/doc/master/cloud/intro.html
410
- .. _`proxy settings in Windows` : https://www.dummies.com/computers/operating-systems/windows-10/how-to-set-up-a-proxy-in-windows-10/
411
- .. _`proxy settings in macOS` : https://support.apple.com/guide/mac-help/enter-proxy-server-settings-on-mac-mchlp2591/mac
412
- .. _`proxy settings in Ubuntu` : https://help.ubuntu.com/stable/ubuntu-help/net-proxy.html.en
419
+ .. _`Proxy settings in Windows` : https://www.dummies.com/computers/operating-systems/windows-10/how-to-set-up-a-proxy-in-windows-10/
420
+ .. _`Proxy settings in macOS` : https://support.apple.com/guide/mac-help/enter-proxy-server-settings-on-mac-mchlp2591/mac
421
+ .. _`Proxy settings in Ubuntu` : https://help.ubuntu.com/stable/ubuntu-help/net-proxy.html.en
0 commit comments