Letsencrypt & subdomains

Discussion in 'Installation/Configuration' started by Stelios, Nov 1, 2020.

  1. Stelios

    Stelios Active Member HowtoForge Supporter

    Hi all,

    I'm confused with the subdomains and letsencrypt.
    If I create a new subdomain under bugs folder so full url is bugs.mydomain.com the letsencypt gets the ssl of the mydomain.com and not the bugs.mydomain.com
    Is there a way to tell Letsencrypt to use a seperate certificate for each sub domain?
    I guess I can do that by creating a new web site but I don't want this. I want all subdomains under my main domain.

  2. Th0m

    Th0m ISPConfig Developer Staff Member ISPConfig Developer

    You can enable vhost subdomains for your domain under System -> Main config, and then create the subdomain as separate vhost.
  3. Stelios

    Stelios Active Member HowtoForge Supporter

    Thom, when I do that it points the subdomain to the web folder of the main domain and not into the web/bugs folder for example.
  4. Taleman

    Taleman Well-Known Member HowtoForge Supporter

    What did you enter in Redirect path?
  5. nhybgtvfr

    nhybgtvfr Well-Known Member HowtoForge Supporter

    use vhost subdomain as @Th0m suggests, and set
    parent website mydomain.com
    hostname bugs
    domain mydomain.com
    webfolder /web/bugs (or /bugs if you want the files in a separate folder, alongside (same level) as /web )
    you'd also most likely want to set auto-subdomain to none.
    Th0m likes this.

Share This Page