recently do a local website, the domain name resources of the website: www.example.com, m.example.com img.example.com. If you can"t use Ip access, you want to access resources locally through a domain name.
first consider modifying the hosts file in the windows system:
127.0.0.1 www.example.com
127.0.0.1 m.example.com
127.0.0.1 img.example.com
obviously, the above method can only ensure that one domain name can be accessed normally, and nothing else can be accessed.
is there any software in WIN environment that can be redirected?