Access Django server over SSL using CloudFront

0

Hi,

I have configured SSL certificate on my EC2 instance using AWS CloudFront and my Apache server is accessible using HTTP and HTTPS both. But the Django server running on port 8012 is not accessible over https while using VM IP it is accessible.

Following are my CloudFront distribution settings:Enter image description here Enter image description here Enter image description here Enter image description here Enter image description here

In my EC2 Security group settings following ports are enabled: Enter image description here

How should we configure CloudFront to access domain_name:port on my EC2 instance? How should I add the port number in the cloud distribution settings so that I can access website on that port with the domain name.

Thanks in advance for any help.

IndiG
已提问 6 个月前205 查看次数
1 回答
0

Hello.

You can specify the port number in the CloudFront origin settings.
Therefore, I think it is necessary to set HTTP port 8012.
https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/distribution-web-values-specify.html#DownloadDistValuesOriginProtocolPolicy

profile picture
专家
已回答 6 个月前
  • Can you please explain the steps, i am not able to relate where the ports need to be mentioned.

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则