How to setup website with multiple subsites

Discussion in 'General' started by ggallo, Sep 6, 2023.

  1. ggallo

    ggallo New Member

    Hi All!

    I'm facing a problem I cannot solve. Maybe one of you can help me out.

    A customer requested a new website, that will host a complete YII webapp with frontend, backend and REST API modules. All 3 modules must be accessible on a customer defined FQDN, which must use the below folder structure withing the (only one) website:
    website:/web/backend/web -
    website:/web/rest/web/ -
    website:/web/frontend/web -

    Unfortunately (for this request) the "main" site (and already exists and contains the main website of the customer. Nobody wanted to place the above new YII app inside this website's storage.

    I can create as a website, with modified DOCROOT pointing to /web/backend/web, and I can create a Subdomain (vhost) entry for the to server the /web/rest/web DOCROOT from
    But I can't figure out how to create the with the /web/frontend/web DOCROOT within the site.
    I created the Subdomain (vhost) entry, but the customert not asked for this.
    I cannot create an aliasdomain for a Subdomain (vhost), only for a "real" website entry...

    I cannot figure this out myself.
  2. ahrasis

    ahrasis Well-Known Member HowtoForge Supporter

    Why is that? Have you tried it? I mean create as alias domain (vhost) to and while doing that set the web folder to the intended /web/frontend/web? It should work IMHO.
  3. ggallo

    ggallo New Member

    Yes, I tried. I created as a Subdomain (vhost) for website The resulting Subdomain was ISPconfig appended the whole FQON of the website to the subdomain name I gave...
  4. ahrasis

    ahrasis Well-Known Member HowtoForge Supporter

    No. I said, alias domain (vhost).
  5. ggallo

    ggallo New Member

    Alias domain (vhost) is not an available option in ISPconfig 3.2.9 which we run currently.
    "Normal" aliasdomain form has a list of websites to alias (not a freetype field), and that list does not contain Subdomain (vhost) entries, only entries from Website list. But I do not wanr to alias the "main" site, I want to alias the subsite which served from a subdirectory of the main site.
  6. ahrasis

    ahrasis Well-Known Member HowtoForge Supporter

    You have to activate it just like you activated sub domain (vhost). ISPConfig GUI > System > Interface > Main Config.

Share This Page