Issues with website for newly added domain
I've got a few sites configured in CloudFlare already so know the process etc.
I've recently added a new domain, configured in the same way as the others (incl the Apache config on origin server).
Trying to access website on new domain and it redirects (301) to one of my other websites. Nothing on origin server is doing it either as I can add a localhost entry and access the website with no issues (other than browser doesn't trust the CloudFlare origin SSL cert I have configured in Apache).
I can't seem to find any issues in CloudFlare. What am I missing? 😂
3 Replies
301 redirects tend to persist in cache. have you tried with browser cache cleared? or on another browser? Does that domain's redirect to your other domain ring a bell? Was it once set-up this way?
To which apache config on origin server are you referring to?
Make sure your newly added domain on CF has no rules set-up that could trigger that redirect also make sure your origin webserver(s) have none of there rules either in apacheconf or in admin GUI
if you look at the apache config can you see if you have hardcoded hostnames in the server conf?
So I thought it might have been the SSL/TLS encryption settings in CF as it was still set to flexible (guess this is default?).
Flexible is SSL offload (so TCP/80) to origin server right? If so origin server isn't configured for TCP/80.
Changed it to Full strict and I still have it redirecting on mobile. When home I'll jump on PC and clear cache etc and use developer tools to bypass cache etc too and see if it's still 301 redirect
Separate conf in Apache for each virtual host and each conf is same with just the domain names different
Ah that switching SSL/TLS encryption in CF does actually seem to have solved it. Must have just been a bit of replication time or something from original testing 😎
Thanks both for taking the time to respond 👍🏻👊🏻