change the origin depending on the path

I have a question about Origin rules. What settings should I make if I want to change the origin by path?

I would like to set up something like the following
example.com <- 222.222.222.233
example.com/img/* <- 222.222.211.211
Was this page helpful?