Blog downtime: I got a job and changed the host of Joulsen
I don’t think anyone reads this blog. For that reason it is very ironic that I am justifying why it has no new posts. This downtime refers to both the lack of content but also literal server downtime. The reason for this downtime is partly business, partly motivation and partly technical. From most exciting to most boring…
Busy at work
I have started working as a robotics engineer at the company Turf Tank. They produce robots for painting sports fields such as american football fields, baseball fields and much more.

A Turf Tank One in it’s natural habitat
I have been working there since september 2023 which lines up exactly with my last post. A lot of the technical stuff I usually do is now directed at work and I must admit, this causes me to do less technical stuff in my spare time. I sadly cannot disclose most of the interesting things I work with, as it is company intellectual property.
Personal logistics
After graduating I was no longer eligible for student housing, so I had to move away from my studio apartment. The empty rooms of my new and much larger apartment made me uncomfortable, so I had to buy a lot of furniture. I love second-hand shopping, but sourcing an entire apartment second hand is not easy, if you want any sort of cohesion in your interior design.
Rocky transition to Cloudflare
I used to host my blog on the free tier of the cloud computing company Netlify. This suits me perfectly - this site is static & simple, has few visitors and is therefore very low in bandwidth usage. Recent news broke showing some poor free tier user being sent a $104 000 bill for his static website. The bill was eventually wavered, but I still wanted off the platform.
I switched to Cloudflare Pages, a platform very similar to Netlify provided by the network service company Cloudflare.
I ran into some issues, and since I am not exactly a network engineer I could not decipher what was going on.
I would load joulsen.dk and be shown an HTML site with all the assets missing, because they were linking to www.joulsen.dk1.
When loading www.joulsen.dk I would be greeted with a 522: Connection timed out from the side of Cloudflare.
Weird.
The steps leading up to this was:
- I deleted my Netlify page
- I created a new Cloudflare page at
joulsen.pages.dev - I changed my domain name servers to Cloudflare’s. My domain name registrar is punktum.dk for the record.
- No DNS records could be detected, so I manually added a CNAME pointing
joulsen.dktojoulsen.pages.devandwww.joulsen.dkpointing tojoulsen.pages.dev. - I enabled Full (strict) SSL encryption
- I scoured the internet for solutions
After some trial and error, I fixed the problem, and to the best of my knowledge this is why:
- I changed the CNAME record of
wwwto point tojoulsen.dk. I honestly don’t know if/why this is necessary. - I changed the baseURL of my Hugo website to
https://joulsen.dkcausing all hyperlinks to link to the apex domain and neverwww. Because of the CNAME record pointingjoulsen.dktojoulsen.pages.dev2 any link will point to the correct resource hosted by Cloudflare. - I added a static redirect matching
(http.host eq "www.joulsen.dk")pointing tohttps://joulsen.dk. This of course broke all permalinks to my website beginning withwww. So instead I made the redirect dynamic, instead pointing toconcat("https://joulsen.dk", http.request.uri.path).

My website now falls under no-www classification B
I am sure some nerds out there can explain why what I did is an unspeakable act, but this works.
-
If you didn’t know
www.example.comandexample.comare actually two different addresses, the first being a subdomain of the other. If you wanted, they could link to two completely different sites! ↩︎ -
A CNAME record to the apex domain is technically illegal, but Cloudflare implements CNAME flattening which turns this record into a dynamic A record. ↩︎
Published 29. March 2024
Last modified 29. March 2024