By DK400
Hello,
I’m having quite a difficult time changing the domain to a completely different one. Currently the domain with SSL is the aaa.com but im looking to change over to bbb.com and also install SSL.
I just want it to point to bbb.com, i don’t care about the old domain redirecting.
I can’t seem to find any tutorials for this.
Thanks
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!
Hey friend,
There are some specifics on your setup that I do not know, and for that reason I’m going to focus on the high level steps.
Step 1: Change your virtual host (Apache) / server block (Nginx) to adjust references from aaa.com to bbb.com.
Step 2: Run certbot to get a certificate for bbb.com, you’ll be prompted for the values.
Keep in mind that your web application may create another step for you. Applications like Wordpress, for example, store the URL they are intended to run at in their configurations, which causes them to redirect all traffic to the domain set.
Jarland
Hey there,
First you have to create the nwe domain on your domain provider bbb.com and point it to your server, then you have to change your apache/nginx site configuration,changing the server name from aaa.com to bbb.com. Then you will be able to create your SSL certificate through a Certificate Authority or creating yourself the certificate usign tools like certbot.
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.