By umwebscom
Here is a question
I have a website(example.com) already running in /var/www/html can i add another website (newdomain.com) by creating directory /var/www/newdomain.com and use it Without changing the location of example.com as you know it will take time to transfer from /var/www/html to /var/www/example.com ? If yes, How can i do that? Please guide will be thankfull.
I’m using Apache Web Server on Ubuntu 20.04 (LTS) x64
Please reply me ASAP
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, @umwebscom
If your question is if you can host multiple websites on a single droplet, the answer is yes.
You can host multiple websites on one droplet by adding multiple Apache Virtual Hosts. Here’s a step by step article on how to do that:
https://www.digitalocean.com/community/tutorials/how-to-set-up-apache-virtual-hosts-on-ubuntu-18-04
Hope that this helps! Regards, Alex
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.