サブドメインに接続できない問題
問題
Docker等でサーバーを立ち上げ、
以下のURLにFirefoxでアクセスしたいとき
http://subdomain.localhost/
エラーが表示されてしまいます。
解決方法
- URL欄に
about:config
を入力し設定画面を表示 - 検索欄に
network.dns.localDomains
を入力し検索 - valueの欄をダブルクリックし、入力できるようにする
subdomain.localhost
を登録する。(複数登録したい場合は、カンマ区切りで)
参考にしたリンク

Firefox cannot connect to a local servers subdomain
I'm working on laravel app ,i face issue with Firefox and Safari browser , when I need to access my web app with sub-domain for example sub.localhost/myapp/publ...
コメント