简体   繁体   English

在IIS 6网站下将https用于特定应用程序

[英]Use https for specific application under IIS 6 website

We have an intranet server that hosts many web applications / web services in various virtual directories all located under the default web site in IIS6. 我们有一台Intranet服务器,它在IIS6的默认网站下的各种虚拟目录中托管许多Web应用程序/ Web服务。 These all just use http connections on port 80 eg " http://ourintranetsite/applicationname " or " http://ourintranetsite/servicename " etc. 这些都只使用端口80上的http连接,例如“ http:// ourintranetsite / applicationname ”或“ http:// ourintranetsite / servicename ”等。

We have a new web service that we have deployed to a virtual directory under the default web site and it works fine using an http connection. 我们有一个新的Web服务,已将其部署到默认网站下的虚拟目录中,并且可以使用http连接正常运行。 One issue has arisen now that we are starting to use SharePoint Online. 现在,我们开始使用SharePoint Online时出现了一个问题。 We want to be able to call this web service from some client site script on a SP Online page, but it is causing an issue because the SP Online page is using https, so it doesn't like calling a web service over http (IE just puts a warning message in the browser console, but Chrome refuses to make the call at all). 我们希望能够从SP Online页面上的某些客户端站点脚本中调用此Web服务,但是由于SP Online页面使用的是https,因此它引起了问题,因此它不喜欢通过http(IE只是在浏览器控制台中显示警告消息,但Chrome根本拒绝拨打电话)。

Is it possible to configure just the virtual directory hosting this web service to require an SSL connection rather than setting it at the web site level? 是否可以仅将托管此Web服务的虚拟目录配置为需要SSL连接,而不是在网站级别进行设置? We really don't want everything under the default web site to start requiring https, just this particular service. 我们真的不希望默认网站下的所有内容都开始要求使用https,而只是此特定服务。 Obviously I could just tick the "Require secure channel (SSL)" option in the properties of the virtual directory, but from what I understand (I've not had to use SSL before), the default port for that will be 443 while the website is using port 80. Ideally we'd just like to be able to get to the service with something like " https://ourintranetsite/secureservice/ ..." while not impacting any of the existing http applications and services. 显然,我可以在虚拟目录的属性中勾选“需要安全通道(SSL)”选项,但是据我了解(以前我不必使用SSL),默认端口为443,而网站正在使用端口80。理想情况下,我们希望能够使用“ https:// ourintranetsite / secureservice / ...”之类的名称来获得该服务,同时不影响任何现有的http应用程序和服务。

No it's not possible to assign a certificate to virtual directory, however when you add a cert to the website all it does makes the site brow sable over https but that doesn't mean that it has to be browsed only over https. 不可以,无法将证书分配给虚拟目录,但是,当您将证书添加到网站时,它所做的所有事情都会使网站能够通过https进行浏览,但这并不意味着只能通过https浏览。

What I meant is you can have site to be brow sable over http and https. 我的意思是,您可以让网站通过HTTP和https进行浏览。 Add the necessary cert to the site and make sure you do not check "Require secure channel (SSL)" and it should be good to go. 将必要的证书添加到站点,并确保您未选中“需要安全通道(SSL)”,并且应该很好用。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM