Adding a vhost subdomain to the website via API
The main domain is not concatenated to the sub prefix via the API (sites_web_vhost_subdomain_add()). Via the web interface it is. We utilize this "bug" in such way that we add a new domain to the website with its own vhost file (and its own DocumentRoot).
Example: We have a website with the domain example.com. DocumentRoot is ".../web/". We assign a new domain (domain.com) to this website using sites_web_vhost_subdomain_add() API call. We set the web_folder param to "web/domain.com" directory. It works well. This way you can have more domains per website (with separate DocRoots). And that is what we needed!
Question: Do you plan to fix this bug that we use as a feature?