Currently, I add a VirtualServer to Apache manually for each site I want to host.
Is there any way to add it programmatically? Means create a VirtualServer, Create a directory in /var/www/ and copy some files into it.
Is there any API to do so?
I’m running VirtualMin/Webmin but that is also a manual process. Anything to automate all this?
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.