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

Forward response

$
0
0

@tom1 wrote:

Hi. I’m trying forward response from outside service to internal server. I’m using haProxy for this issue. But i don’t know, what i’m doing bad. Response going to public endpoint in DMZ and i need to forward it to internal server.

Here’s my config:

frontend api-in-80
    bind *:80
    acl api_callback_host hdr(host) -i public.endopoint.com

    use_backend cb-api if api_callback_host

    default_backend api-servers-def


backend api-servers-def
    mode http
    stats enable
    stats uri /haproxy?stats
    stats realm API-Proxy\Stats

    balance roundrobin
    option httpclose
    option forwardfor

    server api-web-def 127.0.0.1:8066 check maxconn 6

backend cb-api
    mode http

    balance roundrobin
    option httpclose
    option forwardfor

    option httpchk get /api/v1/test
    server cb-api 10.x.x.x:1234 check maxconn 9

Thanks for your help/

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 4731

Trending Articles



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