How to get a Subdomain - Vhost independent Web Folder?

Discussion in 'Installation/Configuration' started by MarkM, Jan 4, 2021.

  1. MarkM

    MarkM New Member

    I created a Vhost sub-domain, the folder will be created but filled with the same content of my website!
    How do I get a clean /web folder for my sub-domain, so I can use for such as nextcloud? Thank you, for the advice!
  2. Taleman

    Taleman Well-Known Member HowtoForge Supporter

    What did you set for the document root that is relative to the parent web site's directory path?
  3. Jesse Norell

    Jesse Norell ISPConfig Developer Staff Member ISPConfig Developer

    You just add the subdomain as a website, not as a subdomain. Alternately, you could set the subdomain to use a different folder.
  4. MarkM

    MarkM New Member

    I read this about creating the subdomain as a website. The problem is cloudflare, I have to configure everything new in cloudflare only for this subdomain.
    How I can set up a different folder?
  5. MarkM

    MarkM New Member

    Did you mean the /var/www/clients/client2/web3? The subdomain is as well pointed to /web3
  6. Taleman

    Taleman Well-Known Member HowtoForge Supporter

    That is why
    Point it to a subdirectory and different content is shown.
  7. Th0m

    Th0m ISPConfig Developer Staff Member ISPConfig Developer

    Or create a different web for it instead of a subdomain.
    MarkM likes this.
  8. MarkM

    MarkM New Member

    How I do this? Via the Basefolder? Have you example for me?
  9. ahrasis

    ahrasis Well-Known Member HowtoForge Supporter

    The trick with CF is to only set one domain per account. e.g. create and use [email protected] as an account and use only that domain.tld and its sub in that account.

    If all sub domain are in one web server, simply use wildcard to point to it. Even if few other sub domain point to other server, that also work as specific sub domain will be resolved first prior to wildcard sub domain.

    I manage few domains this way and so far, very seldom I have to re-visit any of their CF accounts.
    MarkM likes this.
  10. MarkM

    MarkM New Member

    It is working now! The subdomain with its own web was the best solution! Cloudflare also working with this solution!
    ahrasis and Th0m like this.

Share This Page