Hi,

If your URL is /upload?param=value, then I would use the acl 'path'
directly. It would be more accurate.
path_beg would match anything starting by /upload.
Well, it depends on your upcoming needs.

cheers



On Sat, Feb 2, 2013 at 5:35 PM, Saul Waizer <saulwai...@gmail.com> wrote:
> Hello list,
>
> I am working on routing an upload module that my application uses to a new
> backend, it seems simple enough but I would like to get some feedback.
>
> The application uri looks like this:
>
> My.app.com/upload?id=123&morestuff=haproxy+is+awesome
>
> This is the config I have in mind:
>
> acl uploads_capture  path_beg         /upload
>
> use_backend upload if uploads_capture
>
> The question is, would this suffice to capture the upload URI and route to
> the proper backend? The upload POST contains a number of params, not sure if
> I should add a check to make sure it's a POST as well
>
> Any feedback is appreciated!
> Thank you

Reply via email to