Hello team,
please help me fix this issue.
- topo of deploy:
i deploy the service with:
PC —> Internet ----> Firewall —>Haproxy (80/443) ----> Service Machine - configure of Hproxy
global
log 127.0.0.1 local2
chroot /var/lib/haproxy
pidfile /var/run/haproxy.pid
maxconn 4000000
user haproxy
group haproxy
daemon
stats socket /var/lib/haproxy/stats
defaults
mode http
log global
option httplog
option dontlognull
option http-server-close
option forwardfor except 127.0.0.0/8
option redispatch
retries 3
timeout http-request 10s
timeout queue 1m
timeout connect 10s
timeout client 1m
timeout server 1m
timeout http-keep-alive 10s
timeout check 10s
maxconn 4000000
frontend stats
bind *:8080
stats enable
stats uri /stats
stats refresh 10s
frontend main
mode http
bind 0.0.0.0:80
bind 0.0.0.0:443 ssl crt /etc/ssl/abc-2024.pem
http-request redirect scheme https unless { ssl_fc }
acl news hdr(host) -i news.abc.site
acl beta hdr(host) -i beta.abc.site
acl caching hdr(host) -i caching.abc.site
acl search hdr(host) -i search.abc.site
acl report hdr(host) -i report.abc.site
acl cmsnew hdr(host) -i cmsnew.abc.site
acl api-gateway hdr(host) -i api-gateway.abc.site
acl uploader hdr(host) -i uploader.abc.site
acl storage hdr(host) -i beta-storage.abc.site
acl storageepg hdr(host) -i storageepg.abc.site
acl mediastream hdr(host) -i mediastream.abc.site
use_backend news_backend if news
use_backend beta_backend if beta
use_backend caching_backend if caching
use_backend search_backend if search
use_backend report_backend if report
use_backend cmsnew_backend if cmsnew
use_backend api-gateway_backend if api-gateway
use_backend uploader_backend if uploader
use_backend storage_backend if storage
use_backend storageepg_backend if storageepg
use_backend mediastream_backend if mediastream
backend news_backend
balance roundrobin
mode http
server news01 x.y.z.101:8081 check
server news02 x.y.z.102:8081 check
backend beta_backend
balance roundrobin
mode http
server beta01 x.y.z.101:8082 check
server beta02 x.y.z.102:8082 check
backend caching_backend
balance roundrobin
mode http
server caching01 x.y.z.101:8083 check
server caching02 x.y.z.102:8083 check
backend search_backend
balance roundrobin
mode http
server search01 x.y.z.101:8084 check
server search02 x.y.z.102:8084 check
backend report_backend
balance roundrobin
mode http
server report01 x.y.z.101:8085 check
server report02 x.y.z.102:8085 check
backend cmsnew_backend
balance source
mode http
server cmsnew01 x.y.z.105:8081 check
server cmsnew02 x.y.z.106:8081 check
backend api-gateway_backend
balance source
mode http
server api-gateway01 x.y.z.105:8082 check
server api-gateway02 x.y.z.106:8082 check
backend uploader_backend
balance source
mode http
server uploader01 x.y.z.105:8083 check
server uploader02 x.y.z.106:8083 check
backend storage_backend
balance source
mode http
server storage01 x.y.z.105:8084 check
server storage02 x.y.z.106:8084 check
backend storageepg_backend
balance source
mode http
server storageepg01 x.y.z.108:8081 check
backend mediastream_backend
balance source
mode http
server mediastream01 x.y.z.107:8888 check
- user case
- I can connect streaming at mediastream.abc.site insite of Firewall with link https://mediastream.abc.site/live/stream_1080p/ (with ip of haproxy)
- I can NOT connect streaming at mediastream.abc.site outsite of Firewall with link https://mediastream.abc.site/live/stream_1080p/ (with ip of Firewall). it shown that “The connection was reset.”
- I can connect all other website nomal
Please help to fix this issue