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
전문가
답변함 6달 전
  • Can you please explain the steps, i am not able to relate where the ports need to be mentioned.

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인