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.

Thanks!

Here's my config:

defaults
    timeout client 10s
    timeout server 30s
    timeout connect 15s

frontend http
    bind 0.0.0.0:9090
    default_backend www
    acl fileupload hdr -i multipart
    use_backend uploads if fileupload

backend www
    balance roundrobin
    server  www0 localhost:8181 maxconn 24

backend uploads
    balance roundrobin
    server mult0 localhost:8080 maxconn 12

Reply via email to