Making route for actual subdomain name to droplet

March 13, 2018 70 views
DigitalOcean Miscellaneous Networking CentOS Ubuntu 16.04

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.








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": "",
"port": "6379",
"password": "YYYYYYY",
"database": "0"
"type": "literal"