I hate debugging Apache rewrite rules even more than debugging regular expressions.

Spent several hours thus far trying to reconcile rules for my NIP-05 entry so that it will validate on my root domain without the "www" prefix.

Reply to this note

Please Login to reply.

Discussion

Y u not nginx?

No reason in particular, just a hosting provider I've used for a decade and am too lazy to migrate.

Apache server is an absolute clusterfuck; using nginx was such an improvement in my life

managing cert lifetimes is still a serious pita. I have considered switching to caddy just so I don’t have to think about systemd + letsencrypt restart logic. Never could get that working on my nixos machines.

You guys should definitely give caddy a try, you won’t regret it

also nginx’s config lang is kind of insane and unintuitive. maybe caddy is better here.

This might be a sign you don't know about caddy.

https://caddyserver.com/

#[0]

+1 for Caddy

config format was somewhat confusing at first, but awesome once it clicked

Well it's a dirty job but

Someone's gotta do it 🎤

I'm with you there. I've sunk hours into nginx to get it to redirect a domain to https and then got a critical error that ithink disabled my SSH port 🤦‍♂️ now I'm getting into the drive on another computer.

As far as I can tell, it wasn't even using my rules. Hoping I didn't brick the machine since the root drive is locked down.

I seriously use ChatGPT now for things like that. If it's not right it's close enough to get me 90% of the way there. It removes a lot of the tedium.

may want to use `_` as local-part to make it lopp.com without @ etc

lopp.net, ofc

relayd

Remember the old days of debugging Sendmail rewriting rules? I hated that too. I feel your pain.

Once upon a time, a man had a horse called Apache. He liked that horse, even though the horse would get difficult at times. The man would then have to interrupt his journey for hours on end to gently and patiently convince his horse to cooperate.

One day the man ran out of patience. He traded Apache for a new horse, named Caddy, and the man's journeys went much smoother.

But you see, this man had been stacking sats ever since he became a clever man. So one day the man acquired himself a supercharged automobile. The man was so impressed with it that he never had to bother any horse to facilitate his journeys again.

And this, my friends, is why horses like supercharged automobiles more than men like sats and Caddy.

Good enough reason to support TXT records in NIP-05