After migrating to Windows 10 I can no longer access local domains in VM with Nginx

0

I have a situation that I could not resolve (yet).

Scenario

Use for PHP application development an environment that runs through Virtual Machine Vitual Box controlled via Vagrant . I'm using a * centos / 7 * box, with * Nginx 1.12 * + * PHP-FPM 7.0 * . In the Nginx conf I have applications listening to the hosts mysite.dev and several something. Meusite.dev only on port 80. I have two connections in this VM. One Nat and another host / only to set IP in 10.1.1.10. I have entries in my hosts file pointing correctly to the [sub] domains for this ip. Everything went well on my Windows 7 64-bit, however I changed equipment and this comes with Windows 10.

** Problem **

When trying to open the site both via domain and via IP, Edge reports an INET_E_RESOURCE_NOT_FOUND error, Chrome redirects to https and reports an ERR_CONNECTION_REFUSED error and the Internet Explorer WORKS NORMALLY . In Chrome over IP I can access the webserver (default host).

I have tried to disable Firewall in both, create rules, reconfigure DNS, and the problem persists. I've done a good job and have not seen anything that would help. It should not be a problem in the confs because I did not change anything, I just migrated from the computer.

Has anyone ever gone through this?

    
asked by anonymous 10.01.2018 / 19:09

1 answer

0

Google Chrome

New versions of Google Chrome (current 63) force link to the .dev suffixes as well as to .foo via an HTTP Strict Transport Security header). All you had to do was change the .des suffixes that worked back to normal. Who uses Laravel with dnsmasq will also have this problem.

MICROSOFT EDGE

Up to version 41 of EDGE (Windows 10 v1079) the problem with DNS modified via hosts file was not solved by MS. There are several questions in the support regarding this problem and no proposed solution works. If you want, you can try one of the following options to try to solve similar problems.

  • Disable IPv6 protocol

    • Settings (Win + I) > > "Network and Internet" > > "Change adapter options"
    • Select the "Active" network connection you are using.
    • Click the right mouse button and select "Properties."
    • Uncheck "IP Version 6 Protocol (TCP / IPv6)."
  • Fix a DNS server manually

    • In the same "Properties" window of the "Adapter Options" above, double click on "Protocol IP Version 4 (TCP / IPv4)"
    • Select the "Automatically use the following DNS servers" options
    • Between the following values of DNS servers: 8.8.8.8 and 8.8.4.4 (Google DNS)

Other solutions are available at the link link, especially a regfix.

    
17.01.2018 / 16:52