I would like to create an ACL for one of my balance nodes and would like to know the best way to implement it. Here is a current frontend I have configured with some sample ACLs. I would like to change these ACLs and condense them if possible

frontend test.domain.com 10.0.0.10:80
    option http-server-close
    acl redir-app1 url_beg /app1
    acl redir-app2 url_beg /app2
    acl redir-app3 url_beg /app3
    use_backend apps_cluster if redir-app1
    use_backend apps_cluster if redir-app2
    use_backend apps_cluster if redir-app3
    default_backend default.domain.com


Currently, requests come into test.domain.com. If they are going to test.domain.com/app1 (or /apps2, or /app3), they get redirected to our apps server cluster (which will be apps.domain.com/app1). All other requests just fall out to the default.domain.com backend.


What I would like to do is have a requests that come into test.domain.com/apps/app1 be redirected to the apps_cluster backend via apps.domain.com/app1.

The idea behind this is that I will not need to create a new ACL for every app in our application cluster. Any requests for test.domain.com/app/AnyAppHere will be proxied to apps.domain.com/AnyAppHere, basically stripping the "apps" from the URL before passing it.

What would be the best way to compose this ACL?  Thanks for the help.

--Sean





--
--Sean Patronis
Auto Data Direct Inc.
850.877.8804


Reply via email to