Hi, we're using 1.5-dev17 (plus a few patches committed after that). A
few of our clients send us "GET https://host.example.com/path/to/url";
style requests which some of our backends can't handle. They only work
with "GET /path/to/url" type requests. I was using the following
reqrep rule to fix those up:

reqrep ^([^\ ]*)\ https?://[^/]+(/.+)    \1\ \2

That worked to take care of it, but it was also rewriting the Referer
headers, which we don't want. For now, I've rewritten it to:

reqrep ^(GET|POST|HEAD|OPTIONS)\ https?://[^/]+(/.+)    \1\ \2

but I'm wondering if there's a better or more reliable way to rewrite
just the request line without also rewriting any headers in the
request. We have other reqrep rules that seem like they could
potentially trigger the same thing, now that we've realized that this
is an issue.

Thanks much for any help anyone could provide, and thanks for haproxy,
it's been working wonderfully for us.

Reply via email to