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 Answer
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
EXPERT
answered 5 months ago
  • Can you please explain the steps, i am not able to relate where the ports need to be mentioned.

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions