How To Change The DocumentRoot Of Subdomain?

Discussion in 'Installation/Configuration' started by RahulSharma49, Dec 30, 2018.

  1. RahulSharma49

    RahulSharma49 New Member

    I had recently installed ISPconfig on Ubuntu 18.04 and created a website and installed wordpress on it, now i want to host media files on sub domain, so i created another website, not sub domain as

    I have a folder inside named media, in which i have all media files.
    Now i wanted to change the Document Root of subdomain so i added
    DocumentRoot "/var/www/clients/client1/web5/web/media"

    when i open, page opens but when i try to open, it gives 403 error.
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    Delete the website that you've added for the subdomain and create a vhost subdomain instead. Vhost subdomains can be activated under system > Interface config.

Share This Page