Dnsmasq homestead & osx 停止为子域工作
Dnsmasq homestead & osx stopped working for subdomains
直到 chrome 阻止我使用我的 http://development.app
域,一切正常。我的笔记本电脑突然重启,然后开发域 (http://development.app
) 开始请求 SSL。
所以我尝试移动到 http://development.local
(也尝试了 .test
,但也无法使其工作 - 但一切都在 .app
)
在我的osx中:
nano /usr/local/etc/dnsmasq.conf
address=/.local/192.168.10.10 // also tried: address=/local/192.168.10.10
然后我重新开始:
sudo launchctl stop homebrew.mxcl.dnsmasq
sudo launchctl start homebrew.mxcl.dnsmasq
然后在vagrant ssh
:
sudo nano /etc/dnsmasq.conf
local=/development.local/
domain=development.local
address=/development.local/127.0.0.1
在我的主机中,我有:
192.168.10.10 development.local
192.168.10.10 *.development.local
现在,http://development.local works however http://test.development.local doesn't however, before this change it was working with http://test.development.app。 url 现在 returns 我:
This site can’t be reached
test.development.local’s server IP address could not be found
我完全不知道它是什么意思,但是
dig test.development.local @127.0.0.1
> test.development.local. 0 IN A 192.168.10.10
我忘记了我之前做的这一步:
nano /etc/resolver/local
nameserver 127.0.0.1
直到 chrome 阻止我使用我的 http://development.app
域,一切正常。我的笔记本电脑突然重启,然后开发域 (http://development.app
) 开始请求 SSL。
所以我尝试移动到 http://development.local
(也尝试了 .test
,但也无法使其工作 - 但一切都在 .app
)
在我的osx中:
nano /usr/local/etc/dnsmasq.conf
address=/.local/192.168.10.10 // also tried: address=/local/192.168.10.10
然后我重新开始:
sudo launchctl stop homebrew.mxcl.dnsmasq
sudo launchctl start homebrew.mxcl.dnsmasq
然后在vagrant ssh
:
sudo nano /etc/dnsmasq.conf
local=/development.local/
domain=development.local
address=/development.local/127.0.0.1
在我的主机中,我有:
192.168.10.10 development.local
192.168.10.10 *.development.local
现在,http://development.local works however http://test.development.local doesn't however, before this change it was working with http://test.development.app。 url 现在 returns 我:
This site can’t be reached test.development.local’s server IP address could not be found
我完全不知道它是什么意思,但是
dig test.development.local @127.0.0.1
> test.development.local. 0 IN A 192.168.10.10
我忘记了我之前做的这一步:
nano /etc/resolver/local
nameserver 127.0.0.1