Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add more hints when using Symfony CLI in Windows #19754

Merged
merged 1 commit into from
Apr 9, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading