Question

Dokku app cannot access via domain

I bought this domain coshop-nozzha.academy from Namecheap and I move it to Digitalocean DNS

After that I pointed the domain to my droplet (dokku droplet)

Then I accessed my dokku app via domain api.coshop-nozzha.academy and everything was fine (I accessed my app without any error)

For some reason I powered off that droplet and I took snapshot of it then I removed it (droplet)

After that I created droplet from that snapshot, the droplet created successfully but when I tried to access my dokku app via domain I got this error ERR_CONNECTION_REFUSED, I refreshed the page so many times but the error is still

I removed that droplet and I created new droplet from offical dokku image then I configured the dokku app settings but that error is still when I accessed my app via domain ERR_CONNECTION_REFUSED

However when I tried to add my droplet ip 159.203.104.64 to dokku app domains and access the app via droplet ip everything working fine

In Recap: I cannot access my dokku app vi domain

Show comments

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

I was accessing the app using https however the connection wasn’t secure so I solved this problem by accessing the app using http as the follwing http://api.coshop-nozzha.academy or by secure the app connection using letsencrypt dokku plugin and accessing the app using https as the following https://api.coshop-nozzha.academy

Try DigitalOcean for free

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

Sign up

Become a contributor for community

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

DigitalOcean Documentation

Full documentation for every DigitalOcean product.

Resources for startups and SMBs

The Wave has everything you need to know about building a business, from raising funding to marketing your product.

Get our newsletter

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

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.