I got a situation were I would like to change the DOCROOT for all newly created domains and not touch the existing ones. In the past I have always used the Custom HTTPD Configurations with the GUI but if possible I would like to automate this process.
Preferred situation:
|?DOCROOT=`HOME`/domains/`DOMAIN`/public|
I know you can adjust the virtual_host2*.conf templates but this will change it for all domains. I could also do something with a domain_create_(pre|post).sh script and just script it but I'm wondering if someone has a better idea, how would you tackle this issue?
Preferred situation:
|?DOCROOT=`HOME`/domains/`DOMAIN`/public|
I know you can adjust the virtual_host2*.conf templates but this will change it for all domains. I could also do something with a domain_create_(pre|post).sh script and just script it but I'm wondering if someone has a better idea, how would you tackle this issue?