Article ID: 130, created on Jan 6, 2014, last review on Aug 12, 2014

  • Applies to:
  • Plesk for Linux/Unix

解决方案

安全文档的默认的占位符 (index.html) 页面取自默认的主干结构。您可以在该目录中找到 HTTPD_VHOSTS_D/.skel/0/httpdocs/ directory:

~# ls -l /var/www/vhosts/.skel/0/httpdocs
total 40
drwxr-xr-x  2 root root  4096 Jul 22  2008 css
-rw-r--r--  1 root root 17542 Jun  4  2008 favicon.ico
drwxr-xr-x  5 root root  4096 Jul 22  2008 img
-rw-r--r--  1 root root  7277 Jun 26  2008 index.html
drwxr-xr-x 11 root root  4096 Jul 22  2008 test
~#


你可以安全地替换 index.html 文件。请记得修复文件权限。你可以通过命令 chown 和 chmod 实现此操作。

~# chown root:root HTTPD_VHOSTS_D/.skel/0/httpdocs/index.html
~# chmod 644 HTTPD_VHOSTS_D/.skel/0/httpdocs/index.html

29d1e90fd304f01e6420fbe60f66f838 a914db3fdc7a53ddcfd1b2db8f5a1b9c 56797cefb1efc9130f7c48a7d1db0f0c

Email subscription for changes to this article