Location of symbolic links ..

Discussion in 'Developers' Forum' started by dgmufasa, Dec 5, 2011.

  1. dgmufasa

    dgmufasa New Member

    Hello all,

    When creating a web domain(?) or website, I get the following items placed in the directory /var/www. I am using the function: sites_web_domain_add

    What items can I "tweak" when using sites_web_domain_add so that it does not place the symbolic links (currently in /var/www) into another area/directory? In other words, I dont want the symbolic link for M5883484.faafaa.com to be in /var/www but in another directory?

    Also, what is the SAFE way to remove these? I did a remove of this once (sometime ago) and it brought the whole nameserver down - nothing would work at all.

    TIA
     
    Last edited: Dec 5, 2011
  2. till

    till Super Moderator

    You can use any directory. See ISPConfig settings under System > Server Config > Web.

    Juts delete them, they are optional and just used for easy shell navigatioon of the administrator user. These links are not related to the naemserver in any way, so your nameserver problem was a coincidence and not related to removing the symlinks.
     
  3. dgmufasa

    dgmufasa New Member

    Thanks for the tip :)
     
  4. dgmufasa

    dgmufasa New Member

    one more thing ...

    When making the change, it does not seem to be reflected in the .vhost files. For example, for faafaa.com, the symbolic links go into the right directory:
    /var/www/installed_sites and not /var/www/
    but the file: faafaa.com.vhost remains unchanged.

    For example, in faafaa.com.vhost, I get:

    which does not work until I change it (and all other references of faafaa.com to something like : /var/www/installed_sites/faafaa.com

    I am using the function: sites_web_domain_add of the ISPConfig API. Where can I make the change so that the correct directories are created/used in the .vhosts files?
     
  5. till

    till Super Moderator

    You can set or change every path in the ispconfig vhost template. A link /var/www/faafaa.com is required by ispconfig,if you remove it, you will have toi create your own vhost template that does not rely on this link.
     
  6. dgmufasa

    dgmufasa New Member

    Thanks for the response.

    Where is the template?
     
  7. till

    till Super Moderator

    All config file templates are in /usr/local/ispconfig/server/conf and modified versions should be saved to conf-custom
     

Share This Page