So far we created in Cleaver a site for mysite.com, added Let’s Encrypt SSL and everything is going through CloudFlare’s DNS, worked like a charm.
The we added a second site, dev.mysite.com, and everything went fine on Cleaver, buy anytime we hit dev.mysite.com on the browser it redirects to mysite.com. We used the same CloudFlare configuration that used to work with another tool we used (Laravel Forge): an A record for mysite.com pointing to the server IP and a CNAME record for dev subdomain for mysite.com.
Do we missed something when creating the server or the sites in Cleaver so the second site, dev.mysite.com doesn’t redirect back to mysite.com?
Hi @amiedema! Thanks for the quick reply, we did what you suggested and now everyting is working fine !!
We had to change this DNS settings directly on CloudFlare’s panel because every time I tried to add a CloudFlare DNS Profile on Cleaver (after completing the form including API token) an Error 500 message showed up on a modal.
Beyond this little problem we have solved it, thanks a lot for your help!
You’re welcome @abolo , I’m glad you sorted it out!
Yikes! I see the 500 error if I enter an invalid API token. Thanks for bringing this to my attention! However, it does works if I use a valid API token.
Just to make sure, in Cloudflare > My Profile > API Tokens - did you use the global API token or did you create a new one from one of the available templates?