S
S
superkolya2019-12-17 11:03:24
Windows
superkolya, 2019-12-17 11:03:24

Why doesn't hosts work in win + wsl?

Installed ubuntu via wsl 2 on windows. there is a web project on docker, everything has risen and works successfully, except for one detail. When I deployed the project on native ubuntu, I made the necessary corrections in the hosts file and the project was successfully opened by the domain that I registered in hosts. In the case of win + wsl, when you enter the same line in hosts in win, the project on the domain does not open. It also doesn't open at 127.0.0.1, but it does open at http://localhost.
Tell me what needs to be done so that in win + wsl the project can be successfully opened by domain

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
superkolya, 2019-12-19
@superkolya

::1 localsite.testproblem in windows hosts

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question