I am kinda new to Centos and Apache (and LAMP). My server is running Centos 7 and has only 1 domain currently in /var/www/html (whith joomla CMS).
I need to add a new domain on the same VPS. I have tried with virtual servers (both in /var/www/html/domain2 and /var/www/domain2) but had no luck. I think it might be because my actual domain is in /var/www/html when it should be in /var/www/domain1/html so as to create /var/www/domain2/html for the new domain.
Is there anything I can do to host both domains without having to delete the existing running domain (I would have to reinstall joomla as well which can be rather painful)? Can I “easily” migrate my existing domain to a subfolder (such as /var/www/domain1/html) so as to create (/var/www/domain2/html)?
Thanks for your help!
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.