Change Documentroot for client

Discussion in 'Installation/Configuration' started by Dwalf, Sep 28, 2006.

  1. Dwalf

    Dwalf New Member

    I have a client who wants the document root changed to "/web/line" the default is "/web"

    I been looking at the Directives in the consol of ispconfig.

    I added the line

    DocumentRoot /var/www/web24/web/line

    i can see the line added to the vhosts_ispconfig.conf file but it adds 2 DocumentRoot lines.

    Plus the path does not change.

    I must be doing something wrong.
    I cannot use any "forwarders" to the line folder as this is how his site was built with this path.

    Thanks in advance

  2. denmaus

    denmaus New Member

    easy way is to create a symlink

    the easy way is to create a symlink for the directory...

  3. falko

    falko Super Moderator ISPConfig Developer

    If you put this in the Apache Directives filed, it has no effect because it is overridden by the original DocumentRoot line which comes later in the vhost configuration.
    If you changed it directly in Vhosts_ispconfig.conf: it will be overwritten the next time ISPConfig changes Vhosts_ispconfig.conf.

    But you can change the function make_vhost() in /root/ispconfig/scripts/lib/config.lib.php.
  4. Dwalf

    Dwalf New Member

    Hi all

    Thanks, But still not working,
    Creating a link just did not work since WEB is already there.

    I tried to edit the vhosts_ispconfig.conf but i think it only works for new sites and not existing ones.

    It would be nice if one could set the documentroot.

    For now I will redo the clients site this weekend but in the future it would be reall cool to be able to do this.

    Thanks for all the help

  5. falko

    falko Super Moderator ISPConfig Developer

    You must restart Apache after your changes.

Share This Page