Skip to content

Commit d5be896

Browse files
committed
Fixed a bug were index.html gets overwriten when a subdomain is added.
1 parent 4d4495c commit d5be896

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/plugins-available/apache2_plugin.inc.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,7 @@ function update($event_name,$data) {
284284
}
285285

286286

287-
if($this->action == 'insert') {
287+
if($this->action == 'insert' && $data["new"]["type"] == 'vhost') {
288288
// Copy the error pages
289289
$error_page_path = escapeshellcmd($data["new"]["document_root"])."/web/error/";
290290
exec("cp /usr/local/ispconfig/server/conf/error/".substr(escapeshellcmd($conf["language"]),0,2)."/* ".$error_page_path);

0 commit comments

Comments
 (0)