First time DA user, many issues, can't figure them out. SSL not working as well as subdomains

Jstuts5797

Verified User
Joined
Mar 8, 2020
Messages
9
So I'm new to Directadmin... and just new to self hosting in general. Im running the lastest version of DA on centos 8. First off, whenever I create a subdomain I can't seem to install anything in it using softaculous. I keep getting domain not found. But I have indeed create the sub domain. Also I can't add my ssl to this same subdomain either. When I try to add a wildcard SSL I get the following error:
Found wildcard domain name and http-01 challenge type, switching to dns-01 validation.
CAA record prevents issuing the certificate

The main domain already has the ssl cert just fine... but I can't seem to get it to add to the subdomain. What am I missing here?

Lastly I have had MAJOR problems getting cloudflare to work with directadmin as a whole. It seems that as soon as I set up cloudflare for a domain... about an hour later, I can't even get into directadmin... (and yes I'm using the IP address:port because I've been told cloudflare won't work with the hostname:port doesn't matter. My browser seems to suddenly turn xxx.xx.xxx.xx:port into my.hostname.com:port anyway when I type in just the IP. I'm just completely lost. I've tried so many of the help guides on the DA website that I don't even know what I HAVEN"T tried at this point. Any help would be AMAZING! Thanks in advance!
 
Hello,

DirectAdmin does not sync DNS records to CloudFlare, you need to sync them manually each time you add or remove sub-domains. Or you will need to get a paid account from CloudFlare to run a wildcard in DNS pointed to your Directadmin server.

If you proxy your domain over CloudFlare, you can not use the same domain for accessing DirectAdmin. You need to use a separate name for this. E.g. server.domain.com which should point directly to directadmin's IP.

And since you proxy over CloudFlare you can NOT use the same names for SMTP, POP, IMAP, FTP protocols, the names can be used only for HTTP and HTTPS.

These are just general notes, I don't know your details. So something might be not covered by my post yet.
 
I use the following script to automatically sync my dns changes with Cloudflare whenever I add or edit domains on my server using DirectAdmin.


Definitely worth the time to set it up if you are hosting multiple domains. If you only have one or two domains on your box then manual changes work fine.

Hope that's helpful.
 
Back
Top