Answer the question
In order to leave comments, you need to log in
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
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question