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:
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.
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.
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.
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.
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.
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
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.
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.
Follow the let#s encrypt error FAQ checklist step-by-step, then you know at the end why LE refuses to issue a certificate: https://forum.howtoforge.com/threads/lets-encrypt-error-faq.74179/
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.