Skip to content

Commit

Permalink
Add more hints when using Symfony CLI in Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
llupa authored and javiereguiluz committed Apr 9, 2024
1 parent dbd1fee commit b1789e7
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions setup/symfony_server.rst
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,14 @@ trust store, registers it in Firefox (this is required only for that browser)
and creates a default certificate for ``localhost`` and ``127.0.0.1``. In other
words, it does everything for you.

.. tip::

If you are doing this in WSL (Windows Subsystem for Linux), the newly created
local certificate authority needs to be manually imported in Windows. The file
is located in ``wsl`` at ``~/.symfony5/certs/default.p12``. The easiest way to
do so is to run ``explorer.exe \`wslpath -w $HOME/.symfony5/certs\``` from ``wsl``
and double-click the ``default.p12`` file.

Before browsing your local application with HTTPS instead of HTTP, restart its
server stopping and starting it again.

Expand Down Expand Up @@ -223,6 +231,9 @@ If the proxy doesn't work as explained in the following sections, check these:
* Some Operating Systems (e.g. macOS) don't apply by default the proxy settings
to local hosts and domains. You may need to remove ``*.local`` and/or other
IP addresses from that list.
* Windows Operating System **requires** ``localhost`` instead of ``127.0.0.1``
when configuring the automatic proxy, otherwise you won't be able to access
your local domain from your browser running in Windows.

Defining the Local Domain
~~~~~~~~~~~~~~~~~~~~~~~~~
Expand Down

0 comments on commit b1789e7

Please sign in to comment.