changing DocumentRoot

Discussion in 'ISPConfig 3 Priority Support' started by hotmifi, Feb 23, 2026 at 8:52 PM.

Tags:
  1. hotmifi

    hotmifi New Member HowtoForge Supporter

    Was die stabilste Methode bei einer Site die DocumentRoot fest auf ein Unterverzeichnis zu legen?
    MfG
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    You always do this through the ISPConfig GUI, never change vhost files manually. Do you use Apache or Nginx server?
     
  3. hotmifi

    hotmifi New Member HowtoForge Supporter

    I have it in the Options like this right now, but it gives me another problem:

    DocumentRoot /var/www/clients/client0/web1/web/public/
    Alias /client/ /var/www/clients/client0/web1/web/client/
     
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    Correct is this:

    Code:
    DocumentRoot /var/www/clients/client0/web1/web/public/
    Do not use an Alias.
     
  5. hotmifi

    hotmifi New Member HowtoForge Supporter

    but the application has installed a clients directory parallel to public and the web server needs to access it (I did not write the app). The installation guide uses an Alias. How else?
     
  6. till

    till Super Moderator Staff Member ISPConfig Developer

    Ok, if the app needs that and the developer recommends it like this, then use Alias. Most apps would probably use a symlink in the filesystem for that.

    You said you have a problem with that setup. What is your exact problem? The website root is defined correctly like that.
     

Share This Page