Two (sub)domains under same user - document root

Discussion in 'HOWTO-Related Questions' started by mislav, Dec 23, 2020.

  1. mislav

    mislav Member

    Hi there.

    I was not able to find any answers, so hopefully somebody can help me here.

    Scenario:
    domain1.tld has document root in /var/www/clients/client1/web1/web/admin
    subdomain1.domain1.tld has document root in /var/www/clients/client1/web1/web/subdomain

    Is this possible via ispconfig? how?
    I can achieve this with one manual vhost file, but I'm looking for solution via panel.

    If I create these two as websites, i could adjust documentroot variable in the options apache directives & adjust openbasedir- but then I have problems with permissions where website domain1.tld runs e.g. under web1 and subdomain under web2, so a lot of hassle there. They are in the same group client1, but still.

    Any ideas? Thanks
     
  2. Jesse Norell

    Jesse Norell ISPConfig Developer Staff Member ISPConfig Developer

    Use a vhost subdomain, it lets you set the web folder.
     
    ahrasis likes this.
  3. mislav

    mislav Member

    Where is that exactly? If I either try to create alias/subdomain - option tab is completely blank for me on both and there is no option to adjust document root.
     
  4. Jesse Norell

    Jesse Norell ISPConfig Developer Staff Member ISPConfig Developer

    You need to enable the 'Create subdomains as web site' setting in System > Main Config (there's also one for alias domains), then the menu option will be present.
     
    ahrasis likes this.
  5. mislav

    mislav Member

    Thanks. This can be closed, all clear.
     

Share This Page