reqrep help

From: Dave Pascoe <dave#ourstage.com>
Date: Wed, 21 Jan 2009 12:44:53 -0500


Long-time haproxy user...first time poster. Finally ran into a rewrite issue I just haven't been able to solve. Seems like it ought to be simple.

Problem: Need to rewrite requests like /foo/favicon.ico and to just /favicon.ico

Using this line:
reqrep ^([^\ ]*)\ /(.*)/favicon.ico \1\ /favicon.ico

results in an HTTP 502 returned.

Just having a mental block today...why would I be getting a 502?

Thanks,
Dave Received on 2009/01/21 18:44

This archive was generated by hypermail 2.2.0 : 2009/01/21 19:00 CET