Quantcast
Channel: HAProxy community - Latest topics
Viewing all articles
Browse latest Browse all 4849

ACL and 401 Question

$
0
0

I have an ACL that works fine:
acl broadcast hdr(host) -i bcast.mydomain.us

Now I need this ACL to work (or something similar):
acl broadcastphp path -i -m end /save.php

use_backend bcast1 if broadcast
use_backend bcast2 if broadcastphp

backend bcast1
balance leastconn
http-request set-header X-Client-IP %[src]
redirect scheme https if ! { ssl_fc }
server broadcast1 broadcast.lxd:9001 check ssl verify none

backend bcast2
balance leastconn
http-request set-header X-Client-IP %[src]
redirect scheme https if ! { ssl_fc }
server broadcast1 broadcast.lxd:9001 check ssl verify none

Here is the haproxy log for this:

Mar 4 20:20:48 localhost haproxy[307]: 24.164.61.66:64197 [04/Mar/2021:20:20:48.287] http_lb~ bcast1/broadcast1 0/0/1/2/82 401 203 - - SD-- 7/7/1/1/0 0/0 “POST /save.php HTTP/1.1”

It appears I am always hitting the bcast1 when I want bcast2? Note that I am always getting a 401 Unauthorized for the bcast.mydomain.us/save.php url and I don’t know why?

Ideas?

Ray

4 posts - 2 participants

Read full topic


Viewing all articles
Browse latest Browse all 4849

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>