Azure虚拟机上的HTTPS [英] HTTPS on Azure Virtual Machine
问题描述
我将网站迁移到在Windows Server 2012 VM上运行的Azure.我已经从GoDaddy购买了通配符SSL证书,并且已在VM上安装和配置了通配符SSL证书.我还配置了IIS以将此证书用于端口443上的所有请求.我还在端口443的Azure管理控制台中创建了HTTPS终结点.
I am moving our web site to Azure, running on a Windows Server 2012 VM. I have purchased a wildcard SSL cert from GoDaddy and it has been installed and configured on the VM. I have also configured IIS to utilize this cert for all requests on port 443. I have also created the HTTPS endpoint in the Azure management console on port 443.
我可以通过端口80很好地连接到网站,但是无法访问443并通过提琴手监视连接,我得到了502响应.
I can connect just fine to the web site on port 80, but 443 cannot be reached and monitoring the connection through fiddler, I'm getting a 502 response.
我已经搜索了Azure上的所有文档,却找不到在云中的虚拟机上设置SSL的太多帮助.
I have searched all the documentation on Azure and cannot find much help for setting up SSL on a virtual machine in the cloud.
推荐答案
为SSL设置端点时,我已选中启用直接服务器返回"框.此设置使SSL无法正常工作.我还没有碰到任何文档来解释为什么会这样.删除端点并在不启用直接返回服务器的情况下创建端点即可解决此问题.
When I set up the endpoint for SSL, I had checked the box for "Enable Direct Server Return." This setting prevented SSL from working. I haven't come across any documentation explaining why it behaves this way. Removing the endpoint and creating it without direct server return enabled fixed the problem.
这篇关于Azure虚拟机上的HTTPS的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!