Apache和IIS 7乳宁一起 [英] Apache and IIS 7 runing together

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

问题描述

我的工作在Windows 7上的IIS 7和XAMPP安装在同一台计算机上。
我一直在玩赢主机文件和Apache的配置文件到了解服务器的根和目录。

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的屏幕,当本地主机/ 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接管80端口完全靠魔术0.0.0.0地址。你需要做的是重新绑定Apache和IIS,以不同的IP地址以及删除0.0.0.0绑定。不完全知道如何到达那里的IIS7(你正在运行它在给定的screenies IE9 presuming),上次我拉这门绝技IIS6是水平轴风力机。

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.

编辑:发现神奇的符咒,后IIS7 #44 - IIS7和Apache在同一台机器上

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

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

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