Apache和IIS 7一起运行 [英] Apache and IIS 7 running together

查看:186
本文介绍了Apache和IIS 7一起运行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Windows 7. IIS 7和XAMPP安装在同一台计算机上。
我一直在玩win主机文件和apache配置文件,以了解Server Root和目录。

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 Server Root and directory.

我不知道我搞砸了哪里,知道什么时候我键入localhost它显示我的IIS 7屏幕,当localhost / xampp然后显示apache屏幕。

I dont know where i messed up, that know when i type localhost it shows me IIS 7 screen and when localhost/xampp then apache screen.

IIS和apache如何在80端口一起运行?困惑。

How can IIS and apache run together at port 80 ? confused.

推荐答案

这是可行的。要记住的是,没有2个服务可以共享相同的端口和IP地址。不幸的是,IIS在神奇的0.0.0.0地址上完全接管端口80。您需要做的是将apache和IIS重新绑定到不同的IP地址,以及删除0.0.0.0绑定。不完全确定如何在IIS7上实现(假设你在屏幕上给出IE9运行它),上次我拉这个特技IIS6是hawt。

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.

更加理智选项是在80上设置反向代理,并根据您想要使用的任何理性标准将其移交给不同的Web服务器。

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.

编辑:找到魔法juju, IIS7帖子#44 - IIS7和Apache在同一台机器上。

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

这篇关于Apache和IIS 7一起运行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆