Question

How can I setting multiple domains in Apache2 on Linux 20.4

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

Subscribe
Share

Submit an 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