diff --git a/server/plugins-available/apache2_plugin.inc.php b/server/plugins-available/apache2_plugin.inc.php index 1d8c445a399262a571d7a8880173c9e6c0f244e4..7b46615c272586173c9dc0229f65050415c65a8e 100644 --- a/server/plugins-available/apache2_plugin.inc.php +++ b/server/plugins-available/apache2_plugin.inc.php @@ -284,7 +284,7 @@ class apache2_plugin { } - if($this->action == 'insert') { + if($this->action == 'insert' && $data["new"]["type"] == 'vhost') { // Copy the error pages $error_page_path = escapeshellcmd($data["new"]["document_root"])."/web/error/"; exec("cp /usr/local/ispconfig/server/conf/error/".substr(escapeshellcmd($conf["language"]),0,2)."/* ".$error_page_path);