Question

[DNS configuration] Using www does not work

Posted January 13, 2015 1.9k views

http://i.imgur.com/V4ErCkZ.png

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.

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

1 answer

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

I’ve changed

ALLOWED_HOSTS = ['mydomain.com'] 

to

ALLOWED_HOSTS = ['*']
Submit an Answer