Combine proxy with rewrite?

I want requests with /images to be forwarded to localhost:3005 with that “/images” stripped off.
was trying to do something like this:

rewrite /images {
    r  (.*)
    to http://localhost:3005/{1}
}

but it doesn’t work.Please help?

proxy has without directive that can be used for that.

1 Like

Yeah, I don’t think you can rewrite to another host, since rewrites are internal. But I’d use proxy’s without directive like Abiola suggested.

Yay! I know it must be supported somewhere. Thank you all

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.