Submitted by xtremeservices on Fri, 09/28/2012 - 17:18
Hi Guys,
This is an enhancement request, unless it already exists and I am just not sure how to go about it.
When I setup a new client using a Specific Server Template, I would like to have an initial index.php file deployed to their public_html folder so that a site forbidden message isn't displayed and they have information on where to look next for setting up their site.
I have looked high and low for this option but only found the options for custom Site Disabled page and Script Installers.
It would be really cool to have a section in the Server Template -> Apache website above the Disabled Site for Initial Site HTML or an initial index.php file path to copy from.
If there is already a way to do this I am all ears : )
~Jeremy
Status:
Closed (works as designed)
Comments
Submitted by JamieCameron on Fri, 09/28/2012 - 17:35 Comment #1
You can select initial site content on the domain creation form, in the "Initial website content" section - this lets you select a style that defines initial HTML pages and images.
If you don't like any of the included styles, see https://www.virtualmin.com/documentation/developer/content-styles for documentation on how to create your own.
Submitted by xtremeservices on Fri, 09/28/2012 - 17:38 Comment #2
Hi Jamie,
I am creating these new sites with API calls in WHMCS. What is the proper syntax for choosing a template from the API or passing the HTML content?
~Jeremy
Submitted by JamieCameron on Fri, 09/28/2012 - 17:44 Comment #3
You need to use the
style
parameter followed by the content style name. The initial text can be set with thecontent
parameter.The
list-styles
API command can be used to list available styles.Submitted by xtremeservices on Fri, 09/28/2012 - 17:54 Comment #4
Fantastic, thank you Jamie. I will contact Matt at WHMCS and have them add this to their Virtualmin module.
~Jeremy
Submitted by JamieCameron on Fri, 09/28/2012 - 18:03 Comment #5