Apache和IIS 7一起运行

编程入门 行业动态 更新时间:2024-10-28 10:23:48
本文介绍了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一起运行

本文发布于:2023-10-28 02:39:40,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1535269.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:Apache   IIS

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!