By Robert Neal
Hey guys I’m having a problem pointing my digital ocean Wordpress droplet to a domain name I have. I’ve already been through this tutorial https://www.digitalocean.com/community/tutorials/how-to-set-up-a-host-name-with-digitalocean and at the moment:
test.dumontocdhelp.com , www.dumontocdhelp.com , or anything else before .dumontocdhelp.com will redirect to my droplet’s ip address [ http://45.55.244.247 ].
However If I try dumontocdhelp.com i get redirected to https://dumontocdhelp.com/ which gives me an error page that says
This site can’t be reached dumontocdhelp.com refused to connect.
Not sure if it has something to do with the https, any help would be great.
** Also yes I did make an A record to also connect my IP to a domain name with nothing before it for dumontocdhelp.com *
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!
If WordPress was installed using the Droplet IP, then WordPress is using the IP address pulled from the environment/URL/headers. To change the URL that WordPress uses, the easiest method would be to edit wp-config.php and add in:
define('WP_HOME','http://example.com');
define('WP_SITEURL','http://example.com');
Change example.com to your domain in each define(). You’d then refresh the page and that’ll set the domain that WordPress uses to your domain.
Once the domain is updated, you may need to make one more change and that’d be to Apache and the VirtualHost block that your domain uses.
Your VirtualHost blocks are located in /etc/apache2/. You’d need to change the IP being used for the host to your domain and then restart Apache using:
service apache2 restart
As long as your DNS is correct, that should fix issues with your domain not working.
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.