dimanche 11 février 2018

Django DisallowedHost at /, adding it causes connection to be refused

I'm facing a Django DisallowedHost error, googling the solution lead me to add the domains in question to the ALLOWED_HOSTS list in settings.py.

However, doing so causes the connection to flat out refuse to connect, and seemingly force https.

DisallowedHost Error log:

https://pastebin.com/sEg73qmV

django.core.exceptions.DisallowedHost: Invalid HTTP_HOST header: 'www.davixxa.net'. You may need to add 'www.davixxa.net' to ALLOWED_HOSTS.

This being the specific error of interest.

Any help would be greatly appreciated




Aucun commentaire:

Enregistrer un commentaire