change the DocumentRoot ... HELP :)

Discussion in 'Installation/Configuration' started by bu_marius, Sep 25, 2015.

  1. bu_marius

    bu_marius New Member

    hello everybody.
    Can anyone help me please?

    What is the best way to change the DocumentRoot
    from
    /var/www/client1/web1/web
    to
    /var/www/client1/web1/web/XXX

    It is a good idea to put this into the Directives Apache Snippets:
    DocumentRoot "/var/www/client1/web1/web/XXX"
    or
    DocumentRoot "/var/www/client1/web1/web/XXX/"
    or
    DocumentRoot /var/www/client1/web1/web/XXX

    This is a good way to do this?

    Best regards
    marius
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    you can use this:

    DocumentRoot {DOCROOT}/XXX

    The {DOCROOT} variable gets replaced by ISPConfig automatically.
     
  3. bu_marius

    bu_marius New Member

    Hi Till.

    Thank you for the message. You're right is better to use variable {DOCROOT}

    Marius
     

Share This Page