Report this

What is the reason for this report?

How can I setting multiple domains in Apache2 on Linux 20.4

Posted on November 19, 2020

My server on DO is a Ubuntu 20.4 with Lamp. Can I using this same tutorial to setting apache to host multiple domains?



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!

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.

Hi @georodrigues,

You can use the tutorial to create a new virtulhost file the same way you created the first one from in without a problem. Of course, you’ll need to change the name of the .conf file, the path where it should load the website, and the domain itself.

You can also follow this article:

https://www.digitalocean.com/community/tutorials/how-to-set-up-apache-virtual-hosts-on-ubuntu-18-04

Regards, KFSys

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Start building today

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.