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?


Submit an answer

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!

Sign In or Sign Up to Answer

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.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

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