-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathhaproxy.md
More file actions
41 lines (34 loc) · 1.05 KB
/
Copy pathhaproxy.md
File metadata and controls
41 lines (34 loc) · 1.05 KB
Edit and raw actions
OlderNewer
1
---
2
layout : wiki
3
title : haproxy
4
summary : haproxy
5
date : 2020-06-18 00:52:42 +0900
6
updated : 2020-06-18 02:10:38 +0900
7
tags : haproxy
8
toc : true
9
public : true
10
parent : DevOps
11
latex : false
12
adsense : true
13
---
14
* TOC
15
{:toc}
16
17
## Header 값으로 forwarding 할 backend 결정하기
18
19
```
20
frontend header_front
21
bind *:80
22
mode http
23
option forwardfor if-none
24
acl demo_host_version hdr(X-DEMO-HOST-VERSION) -i test
25
use_backend test_backend if demo_host_version
26
default_backend prod_backend
27
28
backend test_backend
29
...
30
31
backend prod_backend
32
...
33
```
34
* [참고링크](https://stackoverflow.com/questions/58589331/haproxy-how-to-forward-traffic-to-backend-by-a-matching-header)
35
36
## 링크
37
38
* [Haproxy 설치해서 로드 밸런서로 활용하기](https://findstar.pe.kr/2018/07/27/install-haproxy/)
39
* [L4/L7 스위치의 대안, 오픈 소스 로드 밸런서 HAProxy - naver D2](https://d2.naver.com/helloworld/284659)
40
* [Haproxy 의 Statistics 정보 모니터링 하기](https://findstar.pe.kr/2019/01/05/haproxy-stat-metric/)