Hello DO community.
I am try configuring SSL for my domain (georodigues.com) this is a wordpress site and I am using Let’s Encrypt for that.
So, I am following this article to learn about this question: www.digitalocean.com/community/tutorials/how-to-secure-apache-with-let-s-encrypt-on-ubuntu-18-04
My situation is that:
I am using a single droplet on DigitalOcean for my personal sites;
In this droplet, I have one site works right now and this site are using a Wordpress (Apache, PHP, etc);
In the future (less them one month) I will install a new domain on this droplet;
I am reading this article to help me configure many domains in the same Apache, in the same droplet: www.digitalocean.com/community/tutorials/how-to-install-the-apache-web-server-on-ubuntu-18-04
My question is:
If I create multi domains structure in my apache server, what can I do with de main domain (georodrigues.com)? The domain that are works now.
Can I use the backup to restore the site? Or can I move the files to the folder correspondent (Eg: var/www/html/georodrigues, var/www/html/secondsite etc) before I made changes In apache setting? The site will works or I need to change other configuration?
If the community can help me with some tutorial will be very nice.
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!
Hi there @georodrigues,
Indeed it is recommended to create separate virtual hosts for each website. In your case what you could do is to create a virtual host for your georodigues.com domain name as described here:
One thing that you need to keep in mind is that if you change your document root from /var/www/html to /var/www/georodrigues you might have to update any references that you have in your WordPress database as well from /var/www/html to /var/www/georodrigues.
If you would like to avoid doing this, then you could just create a separate virtual host for your domain name as described, but keep the document root set to /var/www/html, that way you would not have to update any references in your database.
Hope that this helps! Regards, Bobby
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.