Caddy Handler

You can set up caddy to do different things depending on the prefix using handle directive

testsite.com {
  handle_path /media* {
    root * /path/to/media
    file_server
  }

  handle {
    root * /path/to/normal/content
    file_server
  }
}


Revision #2
Created 2022-10-22 15:31:14 UTC by James
Updated 2024-01-21 14:54:00 UTC by James