# Caddy Handler

You can set up caddy to do different things depending on the prefix using [handle](https://caddy.community/t/how-to-serve-file-server-from-different-path/10034) directive

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

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

```