Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 2 > General

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 17th February 2009, 11:38
blocker blocker is offline
Senior Member
 
Join Date: Mar 2008
Posts: 177
Thanks: 9
Thanked 4 Times in 4 Posts
Default standard index.html

Hello,

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

Thanks!
Reply With Quote
Sponsored Links
  #2  
Old 17th February 2009, 13:33
blocker blocker is offline
Senior Member
 
Join Date: Mar 2008
Posts: 177
Thanks: 9
Thanked 4 Times in 4 Posts
Default

Hello,

in the file /root/ispconfig/scripts/lib/config.lib.php

i have commented from line 662 to 678

Code:
/*  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

Last edited by blocker; 18th February 2009 at 14:07.
Reply With Quote
  #3  
Old 17th February 2009, 15:19
edge edge is offline
Moderator
 
Join Date: Dec 2005
Location: The Netherlands
Posts: 2,033
Thanks: 261
Thanked 147 Times in 128 Posts
Default

Just remove index.html from the ISP manager > domain > Options > DirectoryIndex box.
__________________
Never execute code written on a Friday or a Monday.
Reply With Quote
  #4  
Old 18th February 2009, 14:08
blocker blocker is offline
Senior Member
 
Join Date: Mar 2008
Posts: 177
Thanks: 9
Thanked 4 Times in 4 Posts
 
Default

Quote:
Originally Posted by edge View Post
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...
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Standard CGIs feature not working ? letic General 13 1st April 2008 23:48
Stop index.html pedro_morgan Installation/Configuration 7 15th August 2007 18:48
Index.html returns after delete redhat66 Installation/Configuration 2 7th February 2007 00:35
website path for index.html munika Installation/Configuration 2 23rd November 2006 15:45
unable to change index.html mwebb Installation/Configuration 7 12th January 2006 16:16


All times are GMT +2. The time now is 22:54.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.