Hi Willy, Thanks for the response. I just tried adding "mode http" and "option http-server-close" to defaults, and an extra "mode http" in the frontend section. Still no go. I'm testing it on Google Chrome by submitting a basic file upload form.
Do you happen to have an acl configuration to match Content-Type: multipart/form-data handy? (Sorry if my next reply is going to take a while, I need to get some sleep. Will check email first thing in the morning.) On Fri, Apr 12, 2013 at 11:54 PM, Willy Tarreau <[email protected]> wrote: > Hi, > > On Fri, Apr 12, 2013 at 09:04:00PM -0700, Hong Quach wrote: > > I'm having trouble getting haproxy to route multipart requests. Any help > > would be appreciated. > > > > The idea is to route all file uploads to a different server from the > main. > > However, it doesn't seem to ever match the multipart in the request > > headers. I've tried "hdr_beg(Content-Type) multipart" and "path_end > > /uploads.json" as well and it still doesn't seem to want to go to my > > multipart backend. > > I suspect it's only because you don't have "option http-server-close", > so the first request only is routed and the next ones are tunnelled to > the same server. > > Willy > >

