diff --git a/server/conf/index/.htaccess b/server/conf/index/.htaccess new file mode 100644 index 0000000000000000000000000000000000000000..a5cff82f713c74dbb877a570772e9eee6ef417e7 --- /dev/null +++ b/server/conf/index/.htaccess @@ -0,0 +1 @@ +## Default .htaccess file diff --git a/server/conf/index/favicon.ico b/server/conf/index/favicon.ico new file mode 100644 index 0000000000000000000000000000000000000000..7a6c6874616ee08a310cb53f0c724a2cf6a743ff Binary files /dev/null and b/server/conf/index/favicon.ico differ diff --git a/server/conf/index/robots.txt b/server/conf/index/robots.txt new file mode 100644 index 0000000000000000000000000000000000000000..eb0536286f3081c6c0646817037faf5446e3547d --- /dev/null +++ b/server/conf/index/robots.txt @@ -0,0 +1,2 @@ +User-agent: * +Disallow: diff --git a/server/plugins-available/apache2_plugin.inc.php b/server/plugins-available/apache2_plugin.inc.php index 5011d5fa55920c7a7749e1d045ed4add2ece0267..4868e28bf942fcd6de727a7dba73f6522d192b97 100644 --- a/server/plugins-available/apache2_plugin.inc.php +++ b/server/plugins-available/apache2_plugin.inc.php @@ -441,6 +441,9 @@ class apache2_plugin { // copy the standard index page if (file_exists('/usr/local/ispconfig/server/conf-custom/index/standard_index.html_'.substr(escapeshellcmd($conf['language']),0,2))) { exec('cp /usr/local/ispconfig/server/conf-custom/index/standard_index.html_'.substr(escapeshellcmd($conf['language']),0,2).' '.escapeshellcmd($data['new']['document_root']).'/web/index.html'); + if(is_file('/usr/local/ispconfig/server/conf-custom/index/favicon.ico')) exec('cp /usr/local/ispconfig/server/conf-custom/index/favicon.ico '.escapeshellcmd($data['new']['document_root']).'/web/'); + if(is_file('/usr/local/ispconfig/server/conf-custom/index/robots.txt')) exec('cp /usr/local/ispconfig/server/conf-custom/index/robots.txt '.escapeshellcmd($data['new']['document_root']).'/web/'); + if(is_file('/usr/local/ispconfig/server/conf-custom/index/.htaccess')) exec('cp /usr/local/ispconfig/server/conf-custom/index/.htaccess '.escapeshellcmd($data['new']['document_root']).'/web/'); } else { if (file_exists('/usr/local/ispconfig/server/conf-custom/index/standard_index.html')) { @@ -1418,4 +1421,4 @@ class apache2_plugin { } // end class -?> +?> \ No newline at end of file