Can't acess my site through url, only by ip

I have a brand new Digital Ocean (DO) running Ubuntu 16.04 (this was a Ubuntu 16.04 with LAMP). I’ve installed Wordpress on it using the default configuration.

It’s been 3 days since my DNS are pointing to DO servers, but I can’t access my site through url, but I can access it by typing the IP on address bar.

I’ve add a A record with @ pointing to my droplet, then when I type my url it changes to my IP and I can access the site. Off course, I don’t want this configuration.

My domain is

My apache configuration file is:

<VirtualHost *:80>

        ServerAdmin webmaster@localhost
        DocumentRoot /var/www/html

        <Directory /var/www/html/>
            Options Indexes FollowSymLinks
            AllowOverride All
            Require all granted

        ErrorLog ${APACHE_LOG_DIR}/error.log
        CustomLog ${APACHE_LOG_DIR}/access.log combined

        <IfModule mod_dir.c>
            DirectoryIndex index.php index.cgi index.html index.xhtml index.htm


At DO domain panel I have only 3 records with type NS, hostname, value ‘directs’ (X from 1 to 3), TTL 1800

What I’m missing?

Submit an answer

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!

Sign In or Sign Up to Answer

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.

Accepted Answer

What’s the value of WordPress Address URL and Site Address URL when you look here?

How! The problem was WORDPRESS! I don’t know why but Wordpress configurations was pointing to my ip instead of my domain

It is now solved!


Hi @JonathanBatista In the DO control panel, in the DNS section, you need to add A-records pointing to you server for “@” and for “www”

You say “I’ve add a A record” - but where have you done that?

Try DigitalOcean for free

Click below to sign up and get $200 of credit to try our products over 60 days!

Sign up

Featured on Community

Get our biweekly newsletter

Sign up for Infrastructure as a Newsletter.

Hollie's Hub for Good

Working on improving health and education, reducing inequality, and spurring economic growth? We'd like to help.

Become a contributor

Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.

Welcome to the developer cloud

DigitalOcean makes it simple to launch in the cloud and scale up as you grow — whether you're running one virtual machine or ten thousand.

Learn more
DigitalOcean Cloud Control Panel