scy on Nostr: Step 1 for moving my old website from a brittle Apache/mod_rewrite/nginx/Docker setup ...
Step 1 for moving my old website from a brittle Apache/mod_rewrite/nginx/Docker setup to Caddy: Write a test suite documenting current behavior.
Some redirects.
Content Types.
Some directories run PHP, others return .php files verbatim.
Some URLs return 410 Gone.
Some will always return 401 because the user database for the basic-authed area is long gone.
Some _should_ return 410 or a redirect, but return 404 because I fucked up years ago.
All this is now in 37
https://hurl.dev files.
Published at
2024-06-28 18:01:19Event JSON
{
"id": "cbd71711aa97b657d70dea675ab92be367a3fc489386788f96157310960e213c",
"pubkey": "a071462e960207a7a2272a3f59d042e59623bb2217b56f9365cba21e12213e3e",
"created_at": 1719597679,
"kind": 1,
"tags": [
[
"e",
"09f0fa2e96e04fb3e29f742c028d50bf88f9cd5f4917eead44fc715c4cca11dc",
"",
"root"
],
[
"proxy",
"https://chaos.social/@scy/112695553514344148",
"web"
],
[
"p",
"a071462e960207a7a2272a3f59d042e59623bb2217b56f9365cba21e12213e3e"
],
[
"proxy",
"https://chaos.social/users/scy/statuses/112695553514344148",
"activitypub"
],
[
"L",
"pink.momostr"
],
[
"l",
"pink.momostr.activitypub:https://chaos.social/users/scy/statuses/112695553514344148",
"pink.momostr"
],
[
"expiration",
"1722189682"
]
],
"content": "Step 1 for moving my old website from a brittle Apache/mod_rewrite/nginx/Docker setup to Caddy: Write a test suite documenting current behavior.\n\nSome redirects.\nContent Types.\nSome directories run PHP, others return .php files verbatim.\nSome URLs return 410 Gone.\nSome will always return 401 because the user database for the basic-authed area is long gone.\nSome _should_ return 410 or a redirect, but return 404 because I fucked up years ago.\n\nAll this is now in 37 https://hurl.dev files.",
"sig": "6f9cf3f6f63a3e33b8578c222f2d0825e9d1e559f8c4a388d19f0f02c5564a43e782cc2594ec110c8c1710ddfe359501991850fae4cea3e47ac837e65061ffaa"
}