standard index.html

Discussion in 'General' started by blocker, Feb 17, 2009.

  1. blocker

    blocker Member


    can i somehow deny the creation of the standard index.html file in home directories (or global), when creating new users?

  2. blocker

    blocker Member


    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);
          $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
    Last edited: Feb 18, 2009
  3. edge

    edge Active Member Moderator

    Just remove index.html from the ISP manager > domain > Options > DirectoryIndex box.
  4. blocker

    blocker Member

    that way an empty index.html file gets created in the web folder...

Share This Page