简体   繁体   English

Azure 公共 ip https

[英]Azure public ip https

I have Azure public IP, that points to Azure Container instances.我有 Azure public IP,它指向 Azure Container 实例。 For this I'm using load balancer:为此,我正在使用负载均衡器: 在此处输入图像描述

this is my in-bound rule:这是我的入站规则: 在此处输入图像描述

Backend pool:后端池: 在此处输入图像描述

I can navigate to http://40.68.242.95/ and see, that my website is working.我可以导航到http://40.68.242.95/并查看我的网站是否正常运行。 How can I configure https connection for this public ip address?如何为这个公共 ip 地址配置 https 连接? Ie how can I make https://40.68.242.95/ from it?即我如何从中制作https://40.68.242.95/

I tried to reproduce the same in my environment it works fine successfully.我尝试在我的环境中重现相同的内容,它成功地运行良好。

you can able to configure your public Ip address to https using Azure application gateway along with self-signed certificate the only way can made changes.您可以使用Azure 应用程序网关以及自签名证书将您的公共 Ip 地址配置为 https,这是唯一可以进行更改的方法。

Try to create a self-signed certificate using windows powershell ISE like below.尝试使用windows powershell ISE创建自签名证书,如下所示。

在此处输入图像描述

Create an app gateway with public Ip,and you can use your exciting public ip address also.使用公共 Ip 创建一个应用程序网关,您也可以使用令人兴奋的公共 ip 地址。在此处输入图像描述

In configuration tab add a routing rule apply frontend Ip as public and protocol as HTTPS with 443 port and upload a pfx certificate which created through powershell stored in C: drive like below.在配置选项卡中添加路由规则应用前端 Ip 作为公共和协议作为HTTPS443 端口并上传通过存储在 C 中的 powershell 创建的pfx 证书:驱动器如下所示。

![在此处输入图片描述](https://i.imgur.com/mQUOpA4.png)

Once application gateway created you can make use of public ip as https like below.创建应用程序网关后,您可以使用公共 ip 作为 https,如下所示。在此处输入图像描述

Click on advance if you see connection is not private and proceed to support application gateway self-signed support though https.如果您看到连接不是私有的,请单击“前进”,然后通过 https 继续支持应用程序网关自签名支持。

Reference:参考:

https://learn.microsoft.com/en-us/azure/application-gateway/redirect-http-to-https-portal https://learn.microsoft.com/en-us/azure/application-gateway/redirect-http-to-https-portal

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

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