For a given url pattern, I want the contents of the file to be fetched from a CDN and not from my web server.
example:
www.example.com/some/path/ford/new?a=1&b=2
I need to extract:
ford new 1 2
I want to fetch the file from the s3 (or CDN) like:
example-com.s3.com/customers/ford.new.1.2.html
Is this possible at the HAProxy level or would I have to do this in nginx somehow?
The earlier in the pipeline the better obviously.