简体   繁体   English

如何强制IIS 8.5 Web部署仅使用SSL(HTTPS)

[英]How can I enforce IIS 8.5 Web Deploy to use SSL (HTTPS) Only

I've just set-up a website on Windows 2012 (IIS 8.5). 我刚刚在Windows 2012(IIS 8.5)上建立了一个网站。

I'm using Visual Studio 2013, and I'm wanting to configure Web Deploy so that our developers can only deploy over SSL (HTTPS). 我正在使用Visual Studio 2013,并且想要配置Web Deploy,以便我们的开发人员只能通过SSL(HTTPS)进行部署。

In the website settings I've configured the SSL for the site; 在网站设置中,我已经为网站配置了SSL;

For the website binding, I only have HTTPS present; 对于网站绑定,我只使用HTTPS。

在此处输入图片说明

However it seems that I can still publish using WebDeploy over HTTP and I can browse to the site using HTTP, even though the file in this case wasn't found. 但是,即使没有找到这种情况下的文件,似乎我仍然可以通过HTTP使用WebDeploy进行发布,并且可以使用HTTP浏览到站点。

在此处输入图片说明

My main requirement is to stop developers being able to publish over HTTP. 我的主要要求是阻止开发人员能够通过HTTP发布。 How can I achieve this ? 我该如何实现?

I think you should try to redirect all HTTP Requests towards HTTPS 我认为您应该尝试将所有HTTP请求重定向到HTTPS

URL rewriting in IIS 7+: http://blogs.msdn.com/b/kaushal/archive/2013/05/23/http-to-https-redirects-on-iis-7-x-and-higher.aspx IIS 7+中的URL重写: http : //blogs.msdn.com/b/kaushal/archive/2013/05/23/http-to-https-redirects-on-iis-7-x-and-higher.aspx

Make sure that you don't have another IIS web site (usually the Default Web Site) that binds to port 80 with All unsigned IP address and no host header. 确保您没有其他IIS网站(通常是默认网站)绑定到具有所有未签名IP地址且没有主机头的端口80。 That kind of site is a "catch-all" site that gives you the 404. 这类网站是为您提供404的“全面”网站。

暂无
暂无

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

相关问题 如何将WCF与SSL证书HTTPS IIS一起使用 - How can I use a WCF with a SSL Certificate HTTPS IIS VS2008,调试,本地IIS服务器与使用自定义Web服务器,SSL / https - VS2008, Debugging, Local IIS Server vs Use Custom Web Server, SSL/https 我可以在IIS6上部署.net 4.0 Web应用程序吗? - Can I deploy .net 4.0 web application on IIS6? 如何将新的Web应用程序部署到IIS站点的子目录中,而不必单击“转换为应用程序”? - How can I deploy a new web application to a subdirectory of an IIS site and not have to click “Convert To Application”? 如何将带有 React 前端的 ASP.NET Web API 部署到 IIS? - How can I deploy an ASP.NET Web API with React frontend to IIS? 如何在本地iis上部署asp.net Web应用程序? - How can I deploy an asp.net web application on my local iis? 如何在不创建单独站点的情况下在 IIS 上部署 ASP.NET web? - How can I deploy an ASP.NET web on IIS without creating a separate site? 如何在IIS 8上通过一个IP:PORT使用多个SSL证书 - How can i use multiple SSL certificate with one IP:PORT on IIS 8 IIS 8.5 覆盖自定义 JSON 错误响应,而是返回默认的 500 错误响应页面。 如何让 IIS 8.5 返回我的自定义错误? - IIS 8.5 overriding custom JSON error response, instead returns the default 500 error response page. How can I get IIS 8.5 to return my custom error? 在WEB.CONFIG中将HTTP重定向到HTTPS与IIS 8.5(ASP.NET)兼容 - Redirect HTTP to HTTPS in WEB.CONFIG compatible with IIS 8.5 (ASP.NET)
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM