I set name servers, A and CNAME record.I disabled default conf file and enabled lukas713.com.conf. In conf file I have:

ServerName lukas713.com
ServerAlias www.lukas713.com
ServerAdmin lukas.scharmitzer@gmail.com
DocumentRoot “/var/www/html/lukas713.com/public”

I cant visit site via domain, only by its ip adress. Where is the problem?!

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.

Submit an Answer
1 answer

I think a little more information is needed. Did you just create a dns record here or did you set the dns Information where you purchased the domain. For example, if you bought the domain at domains.google.com the dns records there need to point to your digital ocean droplet either by changing the nameservers so you have full access to the dns records here or by pointing the a record to your droplets IP. Also the ttl on those records makes a difference because a dns change takes time to propogate. If you set the ttl to 60 seconds theoretically your dns can update quickly but it also depends on ISPs and such. It looks like it’s resolving for me now are you still having the issue. If so try loading in incognito mode if that works clear your cache.