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 Respuesta
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
EXPERTO
respondido hace 6 meses
  • Can you please explain the steps, i am not able to relate where the ports need to be mentioned.

No has iniciado sesión. Iniciar sesión para publicar una respuesta.

Una buena respuesta responde claramente a la pregunta, proporciona comentarios constructivos y fomenta el crecimiento profesional en la persona que hace la pregunta.

Pautas para responder preguntas