Report this

What is the reason for this report?

Making route for actual subdomain name to droplet

Posted on March 13, 2018

Well, i’ve been trying to use my subdomain to access my droplet ip. ( installed nodebb)

I did change the config.json to xyz.mydomain.com but problem is at my actual domain configuration.

I can do with main url ( i think) but when it comes to subdomain everything become mess.

I’ve tried these guides and those are not make sense at all. I couldn’t manage to work them out.

https://www.digitalocean.com/community/tutorials/how-to-set-up-and-test-dns-subdomains-with-digitalocean-s-dns-panel

https://www.digitalocean.com/community/questions/subdomains-where-nameservers-are-not-changeable

https://www.digitalocean.com/community/questions/how-to-host-a-subdoman-and-main-domain-in-a-same-droplet

https://www.digitalocean.com/community/tutorials/how-to-set-up-and-test-dns-subdomains-with-digitalocean-s-dns-panel

https://www.digitalocean.com/community/tutorials/how-to-set-up-a-host-name-with-digitalocean

https://www.digitalocean.com/community/questions/how-to-i-add-subdomain-to-my-website

https://www.digitalocean.com/community/questions/sub-domain-from-a-different-host-pointed-to-droplet

It looks like everyone says different things.

I have my domain on namecheap servers, i did figure it out that i need to change settings on zone editor option.

a, aaa, cname and other option are there.

id id create new id and ip that it is filled with droplet ip and port or other way around. It doesn’t work.

I finally manage to setup nodebb on centos but now domain route problem showed up.

Anyone kind enough to help me out or point something simple guide that i can manage with my own ?

what i have so far; I have test nodebb - droplet which on centos i have domain and hosting. I want to redirect it as 153.X.Y.Z.:4567 to sub.maindomain.com I did set config.json as it should be.

{ “url”: “http://sub.maindomain.com”, “secret”: "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx, “database”: “redis”, “redis”: { “host”: “127.0.0.1”, “port”: “6379”, “password”: “YYYYYYY”, “database”: “0” }, “type”: “literal” }



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!

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.

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.