Set the document root on creation

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. :slight_smile:

That would set the same custom root or some OR dependent on the params that the templates accept.

It won’t be fully custom.