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.

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
專家
已回答 5 個月前
  • Can you please explain the steps, i am not able to relate where the ports need to be mentioned.

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南