title: Easiest way to change domain names in NGINX
body: <p>So I have been researching how to re-direct my old domain to my new domain and stumbled on this stack article <a href="https://stackoverflow.com/questions/13630300/nginx-domain-name-redirects">here</a>.</p>
  <p>This solution makes sense to me, but when I open my own I get a little overwhelmed. First off I am assuming I want to go into my <code>sites-enabled</code> and not my <code>sites-available</code> correct?</p>
  <p>When I edit the file in sites-enabled for my website its not as simple as the one i the stack example I linked to earlier. I have used certbot for SSL for my website.</p>
  <p>My sites-enabled file looks like this:</p>
  <p><a href="https://pastebin.com/Qbn0xBQ3" rel="nofollow noreferrer">https://pastebin.com/Qbn0xBQ3</a></p>
  <p>I am a bit confused on which &quot;server&quot; section I would put the redirect in to not mess with the certificate?</p>
  <p>I was thinking i have to change the redirect thats already there from certbot in each server and just replace seekadventure with newDomainName since they are already all 301 (Permanent redirects, good for google SEO right?)</p>
  <p>My concern is if I do that my SSL cert is with my seekadventure domain? I would I then add the SSL cert to the new domain name?</p>
  <p>I essentialy want to keep both domains so if someone stumbles on an old link on reddit it will redirect them to the new domain...</p>