Why there is no redirect?

November 1, 2013 5.2k views
I created a droplet www.instrumenti-sp.ru Everything works but the site is not available at instrumenti-sp.ru Then I created a dns record type instrumenti-sp.ru CNAME www.instrumenti-sp.ru. but it's also not available at the address without www. Maybe I need to do a redirect in ngnx?
5 Answers
The issue is that the domain name you added using DigitalOcean's DNS manager is www.instrumenti-sp.ru and not instrumenti-sp.ru.

Delete the current one and create a new one with the name of instrumenti-sp.ru.
Take a look at the server_name directive in your nginx config. Does it read instrumenti-sp.ru www.instrumenti-sp.ru;?
You do not have an A record for instrumenti-sp.ru, try creating a record as follows:

Type: A
Name: @
Value: Your droplet's IP address
This record has already been created. My Zone file:

$TTL 1800
@ IN SOA NS1.DIGITALOCEAN.COM. hostmaster.www.instrumenti-sp.ru. (
1383195950 ; last update: 2013-10-31 05:05:50 UTC
3600 ; refresh
900 ; retry
1209600 ; expire
1800 ; ttl
MX 10 mx.yandex.ru.
@ IN A
@ TXT v=spf1 redirect=_spf.yandex.ru
instrumenti-sp.ru CNAME www.instrumenti-sp.ru.
I created a droplet instrumenti-sp.ru from snapshot and CNAME record www CNAME instrumenti-sp.ru.
Now it works. Thank you.
Have another answer? Share your knowledge.