Question

DigitalOcean using SSL to serve NgInx Backend on Subodmain

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.

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