Setting Let's Encrypt in Apache and using Cloudflare
Hey, guys
I have CF pointing to a website hosted in Digital Ocean. I successfully followed this tutorial to install Let's Encrypt in my Apache server https://www.digitalocean.com/community/tutorials/how-to-secure-apache-with-let-s-encrypt-on-ubuntu-16-04
But when I try to log in, I get the dreaded TOO MANY REDIRECTS error. I dug around and most fixes involved setting CF SSL to FULL STRICT. It did nothing to me. I can access the website if I take this line off my hosts: RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent]
But, in that case, SSL won't work, even if I specifically try https:// ... Turning CF's Automatic HTTPS Rewrites won't work either. It's simply not rewriting.
Can someone give me a light?
Please or to participate in this conversation.