Setup more then one domain on Same server

Posted August 24, 2020 363 views
ApacheServer OptimizationConfiguration ManagementLinux CommandsInitial Server SetupUbuntu 20.04

Here is a question

I have a website( already running in /var/www/html
can i add another website ( by creating directory /var/www/ and use it Without changing the location of as you know it will take time to transfer from /var/www/html to /var/www/ ?
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

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Submit an Answer
1 answer

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:

Hope that this helps!

by Lisa Tagliaferri
This tutorial will guide you through setting up multiple domains and websites using Apache virtual hosts on an Ubuntu 18.04 server. During this process, you’ll learn how to serve different content to different visitors depending on which domains they are requesting.
  • Helo @alexdo !

    Thanks for your reply.

    As you can see in your mentioned source “Step Five — Enable the New Virtual Host Files” it also says “disable the default site defined in 000-default.conf: ”
    but i don’t want to disable the default website. So, if i skip this step will my new sites still works? and old one too?