tags:

views:

33

answers:

0

Hi guys,

I have strange problem, it looks like I can't get acl to working in tcp mode, as all workd under http mode. Here you go my config.

frontend  http *:80
    acl http_test_acl       path_beg    -i /test
    use_backend http_test   if http_test_acl

    default_backend             http_default

backend http_test
    balance   roundrobin
    server    httptest 10.10.10.10:80 check

backend http_default
    balance     roundrobin
    server  httpdefault 10.10.10.10:80 check

############# HTTPS #################
frontend  https *:443
    mode    tcp

    acl https_test_acl      path_beg    -i /test
    use_backend     https_test  if https_test_acl

    default_backend             https_default

backend https_test
mode tcp
    balance   roundrobin
    server    httpstest 10.10.10.10:443 check

backend https_default
mode    tcp
    balance     roundrobin
    server  httpsdefault 10.10.10.10:443 check

Don't pay attention to ip 10.10.10.10 as I have hidden my orginal one. Could you please let me know why https is not working, http frontend/backend acl rules working just fine.

cheers