Default website files & dir

Discussion in 'Installation/Configuration' started by critorix, Jan 26, 2012.

  1. critorix

    critorix New Member


    All the websites I host have the same structure so, as there is some default directories and files created by ISPConfig (error, stats, index.html,...), I wondered where I can specify to copy some other files and directory on create.

    Did someone here know the way to do this?

    Thanks in advance
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    Create a new ispconfig serverside plugin that listens to the event "web_domain_insert" and add your code to create a custm site strzcture there. The plugin name should be after "apache2" in alphabetical order to ensure that your code gets executed after the apache2 plugin created the website base directories.
  3. narg

    narg New Member

    From what i'v saw in :

    if (file_exists($conf['rootpath'] . '/conf-custom/index/standard_index.html_'.substr(escapeshellcmd($conf['language']),0,2))) {
    exec('cp ' $conf['rootpath'] . '/conf-custom/index/standard_index.html_'.substr(escapeshellcmd($conf['language']),0,2).' '.escapeshellcmd($data['new']['document_root']).'/web/index.html');

    look at:

    default conf's are here:

Share This Page