[solved] Use subdomain with 'localhost' or '127.0.0.1'

How can I use subdomains on my local environment?

By @mustafa on Wed 29 Aug 2018 |
Tags domain local

Responses:

Offer your help. Be nice!

@mustafa
1

Chrome seems to support mysubdomain.localhost:myport, so no additional config is needed here. For other browsers try adding using a "local" domain by modifying your /etc/hosts

...
127.0.0.1   myfakedomain.dev
127.0.0.1   mysubdomain.myfakedomain.dev
Login to leave a response!