Wanna change Symlinks: www.mydomain.com

Discussion in 'General' started by tom, Oct 10, 2006.

  1. tom

    tom Member

    I would like to change the symlinks
    to the domain whithout the hostname (www) for a better handling.
    Can we change it and how can we do it?
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    The symlink is always identical with the host + domain of the website.

    If you want to change it, you must change the code in the file /root/ispconfig/scripts/lib/config.lib.php

    But be aware that this may break other functions in ISPConfig like the statistics.
     
  3. tom

    tom Member


    // symbolischen Link erzeugen
    Code:
     if(!is_link($web_path_realname)) $mod->log->phpcaselog(@symlink($web_path, $web_path_realname), "ln -s $web_path $web_path_realname", $this->FILE, __LINE__);
    
    I found that in /root/ispconfig/scripts/lib/config.lib.php and I suppose I have to modify this part "ln -s $web_path $web_path_realname" - right?
     
    Last edited: Oct 11, 2006
  4. falko

    falko Super Moderator Howtoforge Staff

    Yes, right.
     

Share This Page