DigitalOcean Hosting From the Terminal - Server Config
Part II: A client asked me to look into the set up of an existing site hosted on DigitalOcean. There's no control panel so I'm learning a lot of terminal info.
Now that I've found all the NGINX server config info I need to change the domain name from this-domain.com to thisdomain.com. I found an article online about redirecting from an old domain name to a new domain name.
I am almost positive it can't be this easy. There must be more to do. Right? I do not know. I'm waiting for the new domain dns to propagate. I guess we'll see.
ETA: Well of course that wasn't enough. So I copied /etc/nginx/sites-enabled/this-domain.com to /etc/nginx/sites-enabled/thisdomain.com and restarted the server. I get "Your connection is not private" but that's just an ssl command. So what is the putty ssl cert command?!?
ETA 2: I found the magical online article that gave me the final instructions:
certbot certonly --authenticator standalone -d thisdomain.com -d www.thisdomain.com --pre-hook "systemctl stop nginx" --post-hook "systemctl start nginx"
Seeing how ideas and projects connect to one another is an essential skill because it solidifies one's comprehension of that technology.
© 2024 - Amanda Lutz * Web Developer