DigitalOcean using SSL to serve NgInx Backend on Subodmain

November 27, 2018 386 views
Initial Server Setup DNS Ubuntu 18.04

Im currently following a tutorial to install basic Nginx and configure SSL Where I'm kind of lost is that it tells me to add a A Record to my domain configs, which I did, and after running dig +short (domain name) it showed two IPs instead of one, one beeing my DIgitalOcean droplet IP.

I would like to use my www.maindomain.com to serve files using regular Cpanel hosting and api.maindomain.com to point to my droplet Nginx server to serve responses using SSL. Can someone point me out to the right direction because Im getting confused here.

1 comment
  • Sorry for bad english. Basicly what I mean is that I want to use my droplet entierly as a Backend API and still use my main domain name with Cpane; to serve static files.

Be the first one to answer this question.