Question
WordPress site and WP admin not reachable.
I have setup a Digital Ocean droplet with Wordpress (Ubuntu WordPress on 18.04). I configured the WordPress using SSH and also configured Letsencrypt certificates using Certbot while doing so. I also configured my wp admin username and password.
I also changed the name servers at my Domain name provider and pointed to Digital Ocean name servers where I added A record and also A record for www subdomain. If I ping my domain name it is pinging to right IP and also when I check using whatsmydns.net it shows that it is configured correctly.
I could easily access the mydomain/wp-admin and login. I changed the theme and made some layput changes. Then in Settings>General I changed the URLs to https:mydomain.com for site and wp/admin.
Now when I try to reach the site or wp-admin through web browser, I just get an error of This site can’t be reached MYDOMAIN.com refused to connect.
I added following to the wp-config file and restarted apache but still getting same error.
define ('WP_HOME','http://mydomain.com');
define ('WP_SITEURL','http://mydomain.com');
note: wherever I have mentioned MYDOMAIN in question, I have used actual domain in settings and files.
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.
×