Currently have a droplet set up as a Rserver with R and Rshiny installed to run a small shiny app. This works perfectly with the IPv4 address and I am currently using nginx as the http web server.
I have a custom domain and have configured the name servers within my domain purchaser to use the digitalocean ones. The name servers were completely propogated with the dnschecker, but im still experiencing ERR_CONNECTION_REFUSED during domain connection and not sure why.
I have checked countless answers to this question, theres no firewall so dont think its a port problem?
Any advice would be very helpful.
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!
Hey there 👋
If the IP works but the domain shows ERR_CONNECTION_REFUSED
, it’s likely an Nginx config issue, not DNS.
Make sure you’ve added a proper server block for your domain in Nginx, something like:
server {
server_name yourdomain.com;
root /path/to/your/app;
...
}
Also, make sure Nginx has been reloaded after changes:
sudo systemctl reload nginx
You can double-check if Nginx is listening with:
sudo netstat -tulnp | grep nginx
If you’d like, feel free to share your Nginx config here, happy to take a quick look.
- Bobby
Heya,
You can confirm your domain resolves to your Droplet’s IP:
dig yourdomain.com +short
It should return the correct IPv4 address. If not, the issue is DNS-related (even if propagation “seems” done).
Regard
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.