Score:0

I want to serve https for my python flaskrestful API nginx and waitress server with docker on AWS ec2 ubuntu

mt flag

my api serve http trafic fine, but when I try to serve https it simply does not work. I try generating .pem .key files with certbot but when I run this line

sudo certbot --nginx -d ec2DNSpath.com

it doesn't allow it because of some certbot policy probly to do with AWS server or idk.

so I also try to redirect https to http by writing in the /etc/nginx/nginx.conf file by adding these lines

server {
listen 443;
return 301 http://allbackend$request_uri;

}

and restarting nginx... still won't work

so my question is how to serve https with my current setup.

thanks

A. Darwin avatar
my flag
What kind of error do you get if you curl the endpoint using https?
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.