Apache-2.2

如何在相同的 IP 地址(不同的埠)上執行 Apache 和 IIS 7?

  • January 25, 2013

我有一台 Windows Server 2008 機器,目前正在執行 Apache,用於面向公眾的 PHP 站點(埠 80)。IIS 已停止。

我現在需要開始在與 Apache 相同的 IP 地址上執行 IIS,但我可以愉快地使用另一個埠,因為它只是內部埠,例如 8080。我們沒有其他可用的 IP 地址。

我認為可以做到,但我是 Apache 新手,需要確保在啟動 IIS 時不會破壞目前的 PHP 站點。我知道 IIS 預設情況下傾向於佔用 IP 上的所有埠?還是自 IIS 6 以來發生了變化?

我需要採取哪些配置步驟來實現這一目標?

非常感謝,蒂姆

IIS7 的步驟包括:

Microsoft Internet 資訊服務 7.0:

1. Open Internet Information Services (IIS) Manager.
2. Select the Web site that you wish to configure.
3. In the Action pane, click Bindings.
4. Click Add to add a new site binding, or click Edit to change an existing binding.
5. Click OK to apply the changes.

如何更改 IIS 服務的 TCP 埠

或者你可以在 Apache 上試試這個:Binding to Addresses and Ports

短版修改listen行:

<ipaddress>:<port>

引用自:https://serverfault.com/questions/202362