Report this

What is the reason for this report?

[DNS configuration] Using www does not work

Posted on January 13, 2015
HHH

By HHH

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



This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

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.

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

I’ve changed

ALLOWED_HOSTS = ['mydomain.com'] 

to

ALLOWED_HOSTS = ['*']

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.