View Full Version : standard index.html
blocker
17th February 2009, 12:38
Hello,
can i somehow deny the creation of the standard index.html file in home directories (or global), when creating new users?
Thanks!
blocker
17th February 2009, 14:33
Hello,
in the file /root/ispconfig/scripts/lib/config.lib.php
i have commented from line 662 to 678
/* if(!is_file($web_path."/user/".$user_username."/web/index.html")){
if($user_standard_index_page == ""){
$mod->log->caselog("cp -fr /root/ispconfig/isp/user_standard_index.html_".$go_info["server"]["lang"]." ".$web_path."/user/$user_username/web/index.html", $this->FILE, __LINE__); //Standard-Index-Seite einfügen
$inhalt = $mod->file->rf($web_path."/user/".$user_username."/web/index.html");
$inhalt = str_replace("{USER_USERNAME}", $user_username, $inhalt);
} else {
if($web["web_host"] == "") {
$FQDN = $web["web_domain"];
} else {
$FQDN = $web["web_host"].".".$web["web_domain"];
}
$inhalt = str_replace("%%%FQDN%%%", $FQDN, $user_standard_index_page);
unset($FQDN);
$inhalt = str_replace("%%%USER%%%", $user_username, $inhalt);
}
$mod->file->wf($web_path."/user/".$user_username."/web/index.html", $inhalt);
} */
and it worked for me, ispconfig no longer creates the standard html site
edge
17th February 2009, 16:19
Just remove index.html from the ISP manager > domain > Options > DirectoryIndex box.
blocker
18th February 2009, 15:08
Just remove index.html from the ISP manager > domain > Options > DirectoryIndex box.
that way an empty index.html file gets created in the web folder...
vBulletin® v3.8.4, Copyright ©2000-2010, Jelsoft Enterprises Ltd.