I want to force HTTPS for my entire django site. I have middleware that redirects to HTTPS whenever an HTTP request is made. The problem is that I have my application deployed to Amazon Elastic Beanstalk, and the HealthCheck for the load balancer keeps returning RED and shutting my app down because it finds a 301 Redirect response, which it doesn't accept.
I read some other articles and stuff about people having this problem, but most of the material I could find was several years old now. Is there any good way to get around this problem? I am using django-sslify to force https.
Aucun commentaire:
Enregistrer un commentaire