Let's encrypt, cloudflare and too many redirects

While porting my web from Dreamhost to Google Cloud with Let's Encrypt had exactly 0.0 seconds of downtime, adding my magic-cloud-powered web site to Cloudflare was a major disaster, losing millions, billions of Saicoins in the proccess, with almost 24 hours of downtime.

The problem was that Let's Encrypt modifies the Apache configuration to convert every open connection to secure, but Cloudflare seems to do exactly the same, breaking the entire internet with a black hole of 301 redirecctions.

The solution is pretty simple, just disable the mod_rewrite configuration from Let's Encrypt (in my setup, it was in /etc/apache2/sites-enabled/000-default.conf ) and pray for Mojo:

#RewriteEngine on
#RewriteCond %{SERVER_NAME} =www.saiyine.com [OR]
#RewriteCond %{SERVER_NAME} =saiyine.com
#RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent]

Pretty extrange couldn't find it googling around, just a superficial mention of the problem at the Cloudflare Knowledge Base with a well deserved 10 out 29 usefulness punctuation.

Compartelo: Google+ . twitter . Facebook


Comentarios de calidad

Tus datos no serán publicados, salvo que llegue una buena oferta. Si tienes un gravatar, puedes poner tu correo en Contacto y funcionará. O no. Posiblemente si.


< Por lo menos hasta la C | En la nube, y no es coña >