View Single Post
Old 27th May 2009, 13:12
till till is offline
Super Moderator
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 37,015
Thanks: 840
Thanked 5,652 Times in 4,461 Posts

Ok, thats bad. But we have other possible options

You can try to set the default value in the file /usr/local/ispconfig/interface/web/sites/form/web_domain.tform.php

'apache_directives' => array (
			'datatype'	=> 'TEXT',
			'formtype'	=> 'TEXT',
			'default'	=> '',
			'value'		=> '',
			'width'		=> '30',
			'maxlength'	=> '255'
But If I remeber correctly this will be applied only if you visit the last tab with the apache directives field.

The safest option might be to add some code to /usr/local/ispconfig/interface/web/sites/web_domain_edit.php in the onAfterInsert unction that writes your default value to the database. Example:

$app->db->query("UPDATE web_domain SET apache_directives = 'Thats my default value' WHERE domain_id = ".$this->id);
Till Brehm
Get ISPConfig support and the ISPConfig 3 manual from
Reply With Quote