[DNS configuration] Using www does not work

January 13, 2015 1.9k views


I got HTTP error 400 when I try to type www.mydomain.com in my browser
I tried yesterday to use A record:

A | 188.xxx.xx.xxx

but still get error 400

1 comment
  • An http error would indicate that your domain is resolving and the issue is likely with your scripts or web server configuration and not with DNS. I would recommend checking your web server log files to ensure that it is receiving the request and to look for any error details provided there.

1 Answer

Everything is working now, the problem was in Django settings.py.

I’ve changed

ALLOWED_HOSTS = ['mydomain.com'] 


Have another answer? Share your knowledge.