These forums are locked and archived, but all topics have been migrated to the new forum. You can search for this topic on the new forum: Search for Set the document root on creation on the new forum.
It would be really great if when creating a new VirtualServer via Virtualmin and the API there was a way to set a custom document root.
The reason why this feature would be great is when using Rails with Passenger, you need to set the document root to your application public directory and this would make things a lot easier when setting up applications.
Thanks,
+1
You can easily do that:
Go to System Settings -> Server Templates -> Apache Website and change the
DocumentRoot
entry in the Directives and settings for new websites text box. :)That would set the same custom root or some OR dependent on the params that the templates accept.
It won't be fully custom.