Hi Steve,

run HAProxy in debug mode and compare the request received and the
request sent and you'll know if you have an error.

At first sight, your rule looks correct.

Baptiste


On Thu, Mar 6, 2014 at 10:42 PM, Steve Phillips <[email protected]> wrote:
> Haven't gotten a response on this...trying again...any help appreciated.
>
>
> Trying to reverse proxy all requests to
>
> /slideshare
>
> to
>
> www.slideshare.net/api/2/get_slideshow
>
> my front-end config:
>
>  acl url_slideshare   path_dir       slideshare
>  use_backend slideshare         if url_slideshare
>
> and back-end:
>
> backend slideshare
>   option http-server-close
>   option httpclose
>   reqrep ^([^\ ]*)\ /slideshare(.*)      \1\ /api/2/get_slideshow\2
>   server slideshare www.slideshare.net:443 ssl verify none
>
> requests to /slideshow however, are not being rewritten:
>
> 173.11.67.214:60821 [04/Mar/2014:19:49:03.257] main slideshare/slideshare
> 6142/0/289/121/6552 404 9299 - - ---- 0/0/0/0/0 0/0 {} "GET
> /slideshare?slideshow_url=http%3A%2F%2Fwww.slideshare.net%2FAaronKlein1%2Foptimizing-aws-economics&detailed=1&api_key=msCpLON8&hash=a7fe5fd52cc86e4a4a3d1022cb7c63476b79e044&ts=1393980574
> HTTP/1.1"
>
> Is my regex incorrect?  Am I missing something else?
>
> Thanks.
>
> Steve
>

Reply via email to