什么条件下IIS与WCF服务可以共享一个端口?

本文探讨了在HPC项目背景下,如何让IIS和WCF服务在Windows环境下共用443端口。实验结果显示,通过特定配置,可以实现两者在同一端口上的部署,这对于资源优化和系统集成具有重要意义。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

由于HPC项目原因,需要windows服务共享一个绑定的443端口,作为备忘以供参考

我实验了不同应用下的端口共享情况,我的实验为:


IIS 部署hpcportal

WCF服务Proxy和Proxy1


1 port 443 部署 IIS (https://192.168.50.5/hpcporta) 和Proxy(https://192.168.50.5/WindowsHpc/RD-LIUYY1/jobs) 和Proxy1(https://192.168.50.5/WindowsHpc1/RD-LIUYY1/jobs), 结果正常访问,互不影响

2 port  443 部署Proxy(https://192.168.50.5/WindowsHpc/RD-LIUYY1/jobs) 和Proxy1(https://192.168.50.5/WindowsHpc/RD-LIUYY1/jobs), Proxy1无法共享端口。

疑问:
    一个process只能listento 一个port,为什么可以与IIS共享?

原因分析:
    由于WCF和IIS都是基于The HTTP.SYS model,只要保证域名后的相对路径(/hpcporta和/WindowsHpc)不同就不会影响,因此1 work well, 2 failed

(出处:http://msdn.microsoft.com/en-us/library/ms734772.aspx)
The ability to share ports across multiple HTTP applications has long been a feature of Internet Information Services (IIS). However, it was only with the introduction of HTTP.SYS (the kernel-mode HTTP protocol listener) with IIS 6.0 that this infrastructure was fully generalized. In effect, HTTP.SYS allows arbitrary user processes to share the TCP ports dedicated to HTTP traffic. This capability allows many HTTP applications to coexist on the same physical machine in separate, isolated processes while sharing the network infrastructure required to send and receive traffic over TCP port 80. The Net.TCP Port Sharing Service enables the same type of port sharing for net.tcp applications.
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值