How do I set up the hosts file for multiple domains/hosts with the same IP?

前端 未结 3 1481
自闭症患者
自闭症患者 2020-12-13 08:51

As you surely know you can map host names to IP addresses with the \"hosts\" file. This is very useful especially when you are developing as you can change localhost for pro

3条回答
  •  鱼传尺愫
    2020-12-13 09:34

    The hosts file is only a mapping from names to an IP. You can specify multiple names next to an IP like this:

    127.0.0.1 name1 name2 name3.domain
    

提交回复
热议问题