Reputation: 155
I've deploy my django website on heroku. After adding my custom domain, when i try to access to http://www.example.com it redirect me to https://www.example.com and i get this message
ERR_SSL_UNRECOGNIZED_NAME_ALERT
I haven't add any SSL certificate, is it normal that i'm redirect to HTTPS?
Upvotes: 0
Views: 628
Reputation: 426
Likely, that your browser redirects you to https
, not Heroku. Try to use Google Chrome in guest mode or some other browser.
Also, you can check response of your site via python package requests
or smth. It should return 200 code if your site works correctly.
import requests
resp = requests.get('http://www.example.com')
print(f"{resp.status_code=}")
Upvotes: 1