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 22 October 2022 15:31:14 by James
Updated 21 January 2024 14:54:00 by James