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

前端 未结 3 1527
醉话见心
醉话见心 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 13:51

    Your hosts file would look like:

    127.0.0.1 mysites
    127.0.0.1 mysites2
    

    This would let you set up bookmarks like http://mysites:8080 and http://mysites2:8081.

    The next most difficult would be to set up HttpRedirection with a server on port 80. This would let you type http://mysites, and have it redirect to http://mysites:8080, which you would use from that point on.

    To fully get what you want, you would need a reverse proxy set up on port 80. That's too big of a topic to cover here, but there's plenty of information available if you google it.

提交回复
热议问题