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

查看:45
本文介绍了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 是轴.

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 post #44 - IIS7 和 Apache 在同一台机器上.

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

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

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