Skip to content

Commit

Permalink
Merge pull request #322 from barrucadu/barrucadu-404-410
Browse files Browse the repository at this point in the history
Add 404 and 410 pages to www.barrucadu.co.uk
  • Loading branch information
barrucadu authored Dec 18, 2024
2 parents 4f24ccc + 2b44cf3 commit 6a311b3
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 33 deletions.
15 changes: 13 additions & 2 deletions shared/host-templates/website-mirror/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -158,8 +158,19 @@ in
header /fonts/* Cache-Control "public, immutable, max-age=31536000"
header /*.css Cache-Control "public, immutable, max-age=31536000"
file_server {
root ${httpDir}/barrucadu.co.uk/www
root * ${httpDir}/barrucadu.co.uk/www
file_server
handle_errors {
@404 {
expression {http.error.status_code} == 404
}
@410 {
expression {http.error.status_code} == 410
}
rewrite @404 /404.html
rewrite @410 /410.html
file_server
}
${fileContents ./resources/www-barrucadu-co-uk.caddyfile}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,42 +1,42 @@
# Removed posts
respond /posts/2013-05-27-a-gentle-introduction-to-parsec.html 410
respond /posts/2014-01-07-garbage-collection.html 410
respond /posts/2014-12-26-haskell-systematic-concurrency-testing.html 410
respond /posts/2015-01-10-pre-emption-bounding.html 410
respond /posts/2015-07-18-continuous-integration-with-jenkins-and-stack.html 410
respond /posts/2015-07-26-erlang-gopher-server.html 410
respond /posts/2015-08-01-debugging-an-allocation-issue.html 410
respond /posts/2015-08-09-identity-monads-ahoy.html 410
respond /posts/2015-09-23-icfp-retrospective.html 410
respond /posts/2015-10-04-secure-communications-over-insecure-channels.html 410
respond /posts/2015-12-15-finite-maps-in-isabelle.html 410
respond /posts/2016-02-02-cabal-info.html 410
respond /posts/2016-04-03-dejafu-0.3.0.0-release.html 410
respond /posts/2016-05-18-some-thoughts-on-distributed-systems.html 410
respond /posts/2016-09-10-dejafu-0.4.0.0-release.html 410
respond /posts/2017-02-02-subconcurrency.html 410
respond /posts/2017-02-21-concurrency-1.1.0.0-dejafu-0.5.0.1-release.html 410
error /posts/2013-05-27-a-gentle-introduction-to-parsec.html 410
error /posts/2014-01-07-garbage-collection.html 410
error /posts/2014-12-26-haskell-systematic-concurrency-testing.html 410
error /posts/2015-01-10-pre-emption-bounding.html 410
error /posts/2015-07-18-continuous-integration-with-jenkins-and-stack.html 410
error /posts/2015-07-26-erlang-gopher-server.html 410
error /posts/2015-08-01-debugging-an-allocation-issue.html 410
error /posts/2015-08-09-identity-monads-ahoy.html 410
error /posts/2015-09-23-icfp-retrospective.html 410
error /posts/2015-10-04-secure-communications-over-insecure-channels.html 410
error /posts/2015-12-15-finite-maps-in-isabelle.html 410
error /posts/2016-02-02-cabal-info.html 410
error /posts/2016-04-03-dejafu-0.3.0.0-release.html 410
error /posts/2016-05-18-some-thoughts-on-distributed-systems.html 410
error /posts/2016-09-10-dejafu-0.4.0.0-release.html 410
error /posts/2017-02-02-subconcurrency.html 410
error /posts/2017-02-21-concurrency-1.1.0.0-dejafu-0.5.0.1-release.html 410

respond /posts/concurrency/2014-12-26-haskell-systematic-concurrency-testing.html 410
respond /posts/concurrency/2015-01-10-pre-emption-bounding.html 410
respond /posts/concurrency/2016-05-18-some-thoughts-on-distributed-systems.html 410
respond /posts/concurrency/2017-02-02-subconcurrency.html 410
respond /posts/etc/2013-05-27-a-gentle-introduction-to-parsec.html 410
respond /posts/etc/2015-08-01-debugging-an-allocation-issue.html 410
respond /posts/etc/2015-09-23-icfp-retrospective.html 410
respond /posts/etc/2016-02-02-cabal-info.html 410
respond /posts/etc/2017-03-15-optimising-haskell.html 410
respond /posts/etc/2017-04-16-representing-generating-comparing-typed-expressions.html 410
respond /posts/relnotes/2016-04-03-dejafu-0.3.0.0-release.html 410
respond /posts/relnotes/2016-09-10-dejafu-0.4.0.0-release.html 410
respond /posts/relnotes/2017-02-21-concurrency-1.1.0.0-dejafu-0.5.0.1-release.html 410
error /posts/concurrency/2014-12-26-haskell-systematic-concurrency-testing.html 410
error /posts/concurrency/2015-01-10-pre-emption-bounding.html 410
error /posts/concurrency/2016-05-18-some-thoughts-on-distributed-systems.html 410
error /posts/concurrency/2017-02-02-subconcurrency.html 410
error /posts/etc/2013-05-27-a-gentle-introduction-to-parsec.html 410
error /posts/etc/2015-08-01-debugging-an-allocation-issue.html 410
error /posts/etc/2015-09-23-icfp-retrospective.html 410
error /posts/etc/2016-02-02-cabal-info.html 410
error /posts/etc/2017-03-15-optimising-haskell.html 410
error /posts/etc/2017-04-16-representing-generating-comparing-typed-expressions.html 410
error /posts/relnotes/2016-04-03-dejafu-0.3.0.0-release.html 410
error /posts/relnotes/2016-09-10-dejafu-0.4.0.0-release.html 410
error /posts/relnotes/2017-02-21-concurrency-1.1.0.0-dejafu-0.5.0.1-release.html 410

# Moved proxies
redir /bookdb https://bookdb.barrucadu.co.uk permanent
redir /bookdb/* https://bookdb.barrucadu.co.uk permanent

# Removed files
respond /now.html 410
error /now.html 410

# Moved files
redir /publications/coco-flops18-prelim.pdf /publications/coco-flops18.pdf permanent
Expand Down

0 comments on commit 6a311b3

Please sign in to comment.