eko / docker-symfony

Run a Symfony application using Docker & docker-compose
BSD Zero Clause License
1.29k stars 474 forks source link

.localhost doesn't work in Google Chrome #109

Closed iproger closed 4 years ago

iproger commented 5 years ago

There's also an excellent proposal to add the .localhost domain as a new standard, which would be more appropriate here. It would mean we no longer have site.dev, but site.localhost. And everything at *.localhost would automatically translate to 127.0.0.1, without /etc/hosts or dnsmasq workarounds. https://ma.ttias.be/chrome-force-dev-domains-https-via-preloaded-hsts/

wabbenhuis commented 4 years ago

To support any domain-name you could remove the server_name symfony.localhost; in ./nginx/symfony.conf.

Or add the new virtualhost as a server-block or alias.

eko commented 4 years ago

Hi,

@wabbenhuis is right.

Thank you, closing this issue now. Feel free to reopen if you have any question.