HAProxy - basic-Authentifizierung für den backend-server

Ich die folgende Konfiguration verwenden, um internet-Zugang auf dem lokalen 127.0.0.1:2000 proxy ins internet.:

global
    log 127.0.0.1   local0
    log 127.0.0.1   local1 notice
    #log loghost    local0 info
    maxconn 4096
    #chroot /usr/share/haproxy
    user haproxy
    group haproxy
    daemon
    #debug
    #quiet

defaults
    log global
    mode    http
    option  httplog
    option  dontlognull
    retries 3
    option redispatch
    maxconn 2000
    contimeout  5000
    clitimeout  50000
    srvtimeout  50000

listen appname 0.0.0.0:2000
    mode http
    stats enable
    acl white_list src 127.0.0.1 
    tcp-request content accept if white_list
    tcp-request content reject
    stats uri /haproxy?stats
    stats realm Strictly\ Private
    stats auth special_admin:special_username
    balance roundrobin
    option httpclose
    option forwardfor
    server lamp1 23.123.1.110:3128 check

Leider brauche ich zu authentifizieren, um meine externen proxy 23.123.1.110 über http-basic-authentication "special_admin:special_username".
Meine Frage ist, gibt es eine Möglichkeit, die Standardauthentifizierung zu verwenden wie :

server lamp1 http://special_admin:[email protected]:3128 check

Dank

InformationsquelleAutor ovntatar | 2015-11-23

Schreibe einen Kommentar