Saiyine
Punto Com

Let's encrypt, cloudflare and too many redirects

2017-12-24 18:44:57

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.

Rollos antiguos

2017-12-15 22:23:01 - En la nube, y no es coña.

2017-11-19 10:36:02 - Dietpiando.

2017-10-23 21:30:04 - Tirando dadicos.

2017-10-16 17:46:13 - Cuerpos tonerficados.

2017-10-13 16:32:18 - [PENSAMIENTOS] Estamos en las nubes.

Saiyine

Selfie of meHi! Welcome to Saiyine Punto Com where I talk about anything that goes through my mind!

Puedo prometer y prometo que a la mayor brevedad aquí irá un menú o algo asín.