Hi,

I would like to apply a reqrep rule only if requests are redirected to
the backup server (my backup server is running a very simple http
server that cannot handle rewrites and I want all requests to return
/index.html).
Is there a way to achieve this?

Here's the  relevant part of my config file. the problem here is that
all requests are send to / on the backend server, even the production
servers.....

backend app_servers
  balance roundrobin
  option redispatch
  option httpclose
  option forwardfor
  option httplog
  option httpchk OPTIONS /
  server mainappserver 10.12.13.172:80 weight 16 maxconn 16 check
inter 10s
  reqrep ^([^\ ]*)\ /([^\ ]*)\ (.*)     \1\ /\ \3
  server static-backup 10.12.13.14:2001 backup

Thanks

Raph

-- 
Web database: http://www.myowndb.com
Free Software Developers Meeting: http://www.fosdem.org

Reply via email to