Not able to create subdomain

Discussion in 'Installation/Configuration' started by Kaczucha, Oct 26, 2024.

  1. Kaczucha

    Kaczucha New Member

    Hi :)
    I'am not able to create subdomain through sites -> add new website.
    What I want to achieve is XYZ.domain.tld but after creating that site and entering XYZ.domain.tld I'am being redirected to domain.tld. Even If I don't have any subdomain I can type whatever I want like gibberishsomething.domain.tld and I'am still being redirected to domain.tld. Does it look like problem with DNS?

    DNS settings below:
    upload_2024-10-26_16-50-40.png
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    This is not related to DNS at all. Such a redirect happens either because you added a redirect in ISPConfig on the redirects tab of the site, or you installed a CMS like WordPress in that site, which will do such a redirect to its main domain automatically.
     
    Kaczucha likes this.
  3. Kaczucha

    Kaczucha New Member

    thank you for your answer.
    1. I don't have any redirect set in redirects tab.
    2. I don't have any CMS installed now, it should show me to default http site template.
    upload_2024-10-26_17-0-49.png

    upload_2024-10-26_17-1-6.png
     
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    Ok. But did you add the subdomain as sub or aliasdomain to the website already? As mentioned, the issue is not related to DNS, redirects are done by the web server or cms.
     
  5. till

    till Super Moderator Staff Member ISPConfig Developer

    And regarding DNS, you did not mention the subdomain, so I can only assume you added an A-record for it on the authoritative DNS server already as you seem to be able to reach your server IP when entering it in the browser, as you said your website shows up.
     
  6. Kaczucha

    Kaczucha New Member

    Thank you again for your answer :)

    I did it through sites -> website -> add new website, NOTHING ELSE, I didnt do anything in subdomain for website and aliasdomain for website. Also I didnt do anything in DNS settings, I posted a screenshot cause I though it may be DNS problem.
     
  7. Kaczucha

    Kaczucha New Member

    I figured it out somehow. Added A-record in hosting panel where my domain is registered, added A-record in DNS in ISPConfig and now when I enter XYZ.domain.tld it works and shows default html template from ispconfig, great. Now my issue is that letsencrypt is not installing certificate to that website. @till
     
  8. till

    till Super Moderator Staff Member ISPConfig Developer

    You should not have any DNS records in ISPConfig when your ISPConfig server is not the DNS server of that domain. And regarding Let#s encrypt, you must wait until the new DNS record you installed is propagated so LE can reach it. Then add the subdomain to the website again.
     
  9. Kaczucha

    Kaczucha New Member

    Hello again,

    It's been 9 days since my last post here, I've added my subdomain as A record in hosting provider of my domain but still Let's encrypt can't obtain certificate.

    @edit
    and of course i've waited 24h to propagate my changes.
     
    Last edited: Nov 4, 2024
  10. till

    till Super Moderator Staff Member ISPConfig Developer

  11. remkoh

    remkoh Active Member HowtoForge Supporter

    You didn't add a screenshot of the domain tab but you said you only added the subdomain and didn't change anything else.
    My guess is you didn't set auto-subdomain to "none" and left the default "www.".
    In that case you've also created www.XYZ.domain.tld for your website and Lets Encrypt will require to validate that url too besides only XYZ.domain.tld.
    Lets Encrypt can't if you didn't add www.XYZ.domain.tld in the DNS of your registrar.
    So add www.XYZ.domain.tld in the DNS or set auto-subdomain to "none" in ISPConfig and try again.
     
    Last edited: Nov 4, 2024

Share This Page