Skip to content

Commit

Permalink
tbr
Browse files Browse the repository at this point in the history
  • Loading branch information
alexwlchan committed Oct 30, 2024
1 parent abce016 commit d4eb9da
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions Caddyfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
www.alexwlchan.net {
www.alexwlchan.net {
import caddy/redirects.Caddyfile
import caddy/gone.Caddyfile

Expand Down Expand Up @@ -47,11 +47,15 @@ www.alexwlchan.net {

# If somebody gets a 404 or 410 error, respond with my custom error pages.
handle_errors 404 {
respond_with_file _site/404/index.html
root * /home/alexwlchan/repos/alexwlchan.net/_site
rewrite * 404/index.html
file_server
}

handle_errors 410 {
respond_with_file _site/410/index.html
root * /home/alexwlchan/repos/alexwlchan.net/_site
rewrite * 410/index.html
file_server
}

# This is a mini-site that was built separately and I've just uploaded
Expand All @@ -65,7 +69,8 @@ www.alexwlchan.net {
root * /home/alexwlchan/repos/ideas-for-inclusive-events
file_server
}


# Run a static file server for anything not yet handled
root * /home/alexwlchan/repos/alexwlchan.net/_site
file_server

Expand Down

0 comments on commit d4eb9da

Please sign in to comment.