some apps in the same root with as many subdomains

Discussion in 'ISPConfig 3 Priority Support' started by aldo, Nov 29, 2020.

Tags:
  1. aldo

    aldo Member HowtoForge Supporter

    I have three apps in the same site:
    Code:
    /var/www/clients/client0/web1/web/app1
    /var/www/clients/client0/web1/web/app2
    /var/www/clients/client0/web1/web/app3
    Instead of reaching them with:
    Code:
    https://mydomain.tld/app1
    https://mydomain.tld/app2
    https://mydomain.tld/app3
    I would like to reach them by subdomain like:
    Code:
    https://app1.mydomain.tld
    https://app2.mydomain.tld
    https://app3.mydomain.tld
    What is the best way?
     
  2. Taleman

    Taleman Well-Known Member HowtoForge Supporter

    Have you tried creating a subdomain for that website?
    ISPConfig 3.1 Manual chapter 4.6.1.2 Subdomain for website.
     
  3. aldo

    aldo Member HowtoForge Supporter

    Yes I did it.
    I tried setting "Redirect Path" as "/app2/" and also "http://mydomain.tld/app2/" but I always go to
    http:/app2.mydomain.tld/app1/
    In root folder (/var/www/clients/client0/web1/web/) I have and index.html page that redirect to /app1/, but shouldn't it be ignored?
     
  4. Taleman

    Taleman Well-Known Member HowtoForge Supporter

    Last edited: Nov 30, 2020
  5. Jesse Norell

    Jesse Norell ISPConfig Developer Staff Member ISPConfig Developer

    You need to create a vhost subdomain and set the web root to the corresponding directory.
     
    aldo likes this.
  6. aldo

    aldo Member HowtoForge Supporter

    Solved
    enabling "Create subdomains as web site" under System > Main Config > Sites
    then configuring Sites -> Websites -> Subdomain (Vhost)
    instead of Sites -> Websites -> Subdomain for website
    R.T.F.M :oops:
    Thanks.
     
    Th0m likes this.

Share This Page