Set the document root on creation

4 posts / 0 new
Last post
#1 Wed, 08/12/2009 - 16:32
joemclarke

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,

Fri, 03/18/2011 - 00:41
ashishpadave

+1

Fri, 03/18/2011 - 08:05
Locutus

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

Fri, 03/18/2011 - 08:26
ashishpadave

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

It won't be fully custom.

Topic locked