How do i map http://localhost:8080 to http://mysites in iis7?

前端 未结 3 1512
醉话见心
醉话见心 2021-01-13 13:09

Basically i want to be able to type in http://mysites and it show me my localsite rather than typing in http://localhost:8080/?

I intend to do it a few times like ht

3条回答
  •  难免孤独
    2021-01-13 14:14

    You can't set port with hosts file... You'll just need to access the sites as http://mysites:8080, mysites:8081, etc.

    To do that, add an entry to your hosts like

    127.0.0.1 mysites

    (hosts is typically located at C:\WINDOWS\system32\drivers\etc\hosts)

提交回复
热议问题