Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Firefox not able to open subdomains

I have a nodejs app with express as backend which is running on localhost. I have subdomains associated with it like user1.localhost. These subdomains are opening in Chrome but Firefox throws Server Not Found error.

Does Firefox needs some configuration to allow subdomains?

like image 997
Aman Gupta Avatar asked Sep 10 '15 10:09

Aman Gupta


1 Answers

I think the reason is that Chrome resolves *.localhost to localhost internally and other browsers request DNS server for subdomain.localhost (which obviously fails). You can use hosts files to make it work for them.

The reason Chrome does this is security reasons, you can read more about it here.

like image 158
Andrey Avatar answered Sep 30 '22 14:09

Andrey