Apache and IIS 7 running together

前端 未结 5 1957
陌清茗
陌清茗 2020-12-30 04:05

I am working on windows 7. IIS 7 and XAMPP are installed on the same computer. I have been playing with win host file and apache configuration files into to understand Serv

5条回答
  •  攒了一身酷
    2020-12-30 04:36

    It is doable. The thing to keep in mind is that no 2 services can share the same port and IP address. Unfortunately, IIS takes over port 80 completely on the magic 0.0.0.0 address. What you need to do is re-bind apache and IIS to different IP addresses as well as remove the 0.0.0.0 binding. Not exactly sure how to get there on IIS7 (presuming you are running it given IE9 in the screenies), last time I pulled this stunt IIS6 was hawt.

    A more sane option would be to setup a reverse proxy on 80 and have it hand stuff out to different web servers based on whatever rational criteria you want to use.

    EDIT: found the magic juju, IIS7 post #44 - IIS7 and Apache on the same machine.

提交回复
热议问题