Overview

Sometimes you just need a quick reference of the last time you did something seemingly easy but every time you come back to it you’re like… wtf?! Anyway, notes for those times.

DISCLAIMER: THESE ARE MY NOTES OF WHAT I DID… NOT WHAT YOU SHOULD DO. YOU ARE SMART ENOUGH TO LOOK THINGS UP ON THE INTERNET YOURSELF. YOU’RE A BIG BOY. THESE ARE MY “NOTES”, A DIARY OF WHAT I DID IF YOU WILL. YOU ARE FREE TO OFFER SOME SUGGESTIONS IN THE COMMENTS BOX AND I WILL GLADLY LEARN FROM YOU. OTHERWISE, THESE. ARE. JUST. MY. NOTES.

create symlink

this will connect available sites to enabled sites:
ln -s /etc/nginx/sites-available/ronamosa.com.conf /etc/nginx/sites-enabled/ronamosa.com.conf

restart nginx

systemctl restart nginx

note: you need to either add the FQDN to your /etc/hosts local to where you’re calling/testing from, or hax your DNS server to point (exmple) www.nginx.com to your new local.nginx.com site (in my case ronamosa.com)