- wimremes: CEO : "I read about that Twitter hack. Can that happen to us?"
Security : "Yes, but …"
CEO : "What products can w… https://t.co/yzQqlTD2Hk
-
-
- jonspaihts: If you're wondering why people are calling out for hand-marked paper ballots in all elections…
Every major Twitt… https://t.co/ALpAhIgltb
- gilmae: Low Key Fuck 2020 is playing in my coffee shop.
- 13d_riera: The revolution has begun!
Rise up!
The blue checks are gone!
#twitterhacked https://t.co/rLgzkWSHZr - PeterLucier: Tell me, Mr. Anderson:
what good is a verified account if you are unable to speak? https://t.co/LrhogoHao1
- Nikeyg1: This is like lifting COVID restrictions too soon. https://t.co/RTkKPy5dsh
- Will_Duffield: Mr. Dorsey, I don't feel so good. https://t.co/B5vpuZAXbV
- HubertVigilla: Twitter right now https://t.co/Lc4yPxkSEc
- tacticalmaid: Australian twitter users waking up like: https://t.co/XdobKbUziI
- petecheslock: Oh cool a handy list of people to NEVER hire. Thanks.
- shanselman: Looking to get unverified. https://t.co/KIFCXoBVBo
- womensart1: Canadian folk art artist Maud Lewis, Three black cats, 1955 #womensart https://t.co/DFhquInJVy
- jonspaihts: If you're wondering why people are calling out for hand-marked paper ballots in all elections…
-
- PatrickAllies: Presumably to check if they're actually cake https://t.co/8sGv2ac5Zs
- The_McJones: I still can’t see the term Edge Computing without thinking it’s a sex thing.
I’m sorry but you picked a bad term.
- sydjs: 7:30 tonight! Joins us to see what it takes to drive for success with Open Source Software: https://t.co/oQYzxJeO78
- paulcoxon: What is happening https://t.co/d7DG1A5K2D
- jedws: wassis? @i386 on @SBSNews! on ya mate!
- twasink: @web_goddess Spoiler: the heating element is actually a GPU… (in reply to web_goddess)
- seldo: @brianleroux Coders these days don't understand the fundamentals, everyone should be building their own desk (in reply to brianleroux)
-
- johnb78: The Lord giveth, and the Lord taketh away https://t.co/atFYyoLVuf
-
- UnseenJapanSite: "I made a mask just for people who wear glasses. The ramen looks piping-hot as your glasses fog up.
"Difficulty le… https://t.co/lfsjgqtv1D
- carlfish: The one feature that would make Google Image Search useful again. https://t.co/0SWYqiHj0R
- donttrythis: I’m at a loss. No words. I’ve been part of two big families with Grant Imahara over the last 22 years. Grant was a… https://t.co/HrsMsqjDWU
- Peter_Fitz: Statement from ARM Chair regarding the #PalaceLetters https://t.co/gazLpqWQdn
- UnseenJapanSite: "I made a mask just for people who wear glasses. The ramen looks piping-hot as your glasses fog up.
-
- womensart1: #WOMENSART Blog:
The Glasgow School Sisters who Influenced Klimt https://t.co/n0JYhvjSHG https://t.co/j4X5xtQIPL - qkate: Honestly I think some dudes only take this bullshit "no true Scotsman" stance because they're mad when they see oth… https://t.co/EXQ7vryeX3 (in reply to qkate)
- jeamland: Startup pitch: “It’s Untappd but for goon.”
- MichelePlayfair: It occurs to me that Baldrick would really enjoy Animal Crossing https://t.co/96DahwYjOe
- MichelePlayfair: If you're just starting off with #functionalProgramming, try the Intro to #elixir workshop, those with more experie… https://t.co/6JIOCToUMI
- womensart1: #WOMENSART Blog:
-
I clicked on this blog post expecting to be inspired by Margaret and Frances’s art (which is amazing), but instead came away depressed and angry about the limitations placed on their careers.
Their marriages, in turn, lead to a dissolving of the sisters’ artistic partnership as Margaret and Frances began collaborative work with their respective partners, as was expected of dutiful wives. During such work much of the sister’s own artistic input was credited to their husbands.
Rage. 🔥
via The Glasgow School Sisters who Influenced Klimt | #womensart ♀
-
- yezvarn_qvilaxl: i like big butts and i cannot lie. my brother also likes big butts and cannot tell the truth. how will you escape our dungeon
- gilmae: Started watching The Good Place again. How did we not know from like, the tenth minute?
-
Good gracious. This morning I thought I’d just do a quick task on my migrated Lightsail sites: setting up a Lambda function to check every 5 minutes, see if the page contains some specific text, and send me an alarm if the site isn’t up. My first thought was to use CloudWatch Synthetics, but the pricing is a lot higher than just doing it yourself with a Lambda function (though you don’t get spiffy screenshots and such). I kept it simple and happily discovered there’s an existing lambda-canary blueprint available. So I set that up, pointed it at https://www.roalddahlfans.com, and tested it out. It worked great!
Then the Snook, looking over my shoulder, said, “That’ll be going through CloudFront. Why don’t you point it at the origin subdomain so you know it’s hitting the real WordPress underneath?” Okay, sure. Just to double-check it was working, I went to the origin subdomain in the browser… and was redirected to www. What. Uh, that’s not good. Thinking I had screwed something up, I tried hitting the origin subdomain of web-goddess.org… and that worked correctly, not redirecting to www. What the hell. Why were my two sites behaving differently? And why wasn’t RoaldDahlFans’s CloudFront distro barfing that I had set it up with an origin that was redirecting to itself??
Over the next seven hours – seriously – the Snook and I beat our heads against this problem. I tried turning on and off various plugins; I grepped both filesystems multiple times looking for differences; I completely rebuilt the CloudFront distribution for RoaldDahlFans; I turned SSL off and on repeatedly; I fiddled with heaps of htaccess settings… and we got nowhere. We determined that on web-goddess, if I went to https://web-goddess.org, it would be redirected to www; but for any other subdomain (foo.web-goddess.org, etc) it would not. But on RoaldDahlFans, it would always go to www regardless of whether you used a subdomain or not. It was so frustrating.
https://twitter.com/web_goddess/status/1282169357104103424
Various people chimed in pointing us to various things, without much success. My buddy Peter Wilson mentioned thinking that WordPress had some special behaviour to redirect between www and non-www domains, which eventually ended up in us poring over the redirect_canonical code. The Snook noticed that another thing this module does is try to redirect you to the correct page if you type in a URL wrong. For example, if you try to access https://web-goddess.org/about, WordPress will automatically redirect you to https://www.web-goddess.org/about-me (which is the real address). However, if you do that on any subdomain other than www or non-www, it gives a 404. He went to test whether that was also held true for RoaldDahlFans, and to his surprise, the origin was not redirected! What the hell.
We determined that the origin subdomain was only redirecting to www on RoaldDahlFans on the homepage. Every other page on the origin subdomain would not redirect. So what’s special about the homepage for RoaldDahlFans.com compared to web-goddess? Well, web-goddess has the homepage set to show the most recent posts, but RoaldDahlFans uses a static page. I changed RoaldDahlFans.com to use the most recent posts, hit up the origin subdomain, and it did NOT redirect. But when I changed it back to a static page, it went back to redirecting.
SO – there is something in the way WordPress handles sites with static homepages that causes them to be redirected to the Site URL, even if you’re using a random subdomain. If you add anything to the path – subdomain.roalddahlfans.com/index.php, it won’t trigger the redirect. How weird is that?
Okay, so that finally explains the difference in behaviour between the two sites. My origin subdomain for RoaldDahlFans.com was going to redirect requests for the homepage to www, and there was nothing I could do about it. Which meant that when CloudFront needed to refresh its cache for the homepage, it would hit the origin subdomain… and be redirected to itself? Why wasn’t I seeing an infinite redirect loop crashing my site?
Cue another hour of poking around. The only way it wasn’t going to crash, the Snook reasoned, was if CloudFront was passing the Host header through to the origin as part of the request. I was not aware of telling it to do that, but…
It turns out that the AWS WordPress plugin, when it set up my CloudFront distribution, helpfully whitelisted the Host header as part of the default behaviour for the site. This is why CloudFront isn’t barfing every time the homepage cache expires.
So there you have it. What I thought would be a fifteen-minute task sent us down a rabbithole of WordPress, redirects, and content delivery network intricacies. The irony is that after all that, nothing is actually incorrect on my site! It’s all working as intended. We just didn’t know how. The only catch is that if I myself want to bypass CloudFront on RoaldDahlFans.com, I need to append /index.php when I hit the origin subdomain.
This was not how I intended to spend my Sunday… 😅
-
- QuinnyPig: "Legacy systems" are hereby defined as anything that was built back when @awscloud still had the box logo.
- HeartOfPluto_: Thanks to Disney+ I saw the famous #Hamilton broadway musical for the first time and I finally understand why I get… https://t.co/DlMrC3HSxo