web、ml混淆复用80端口
10015
- lgc2018-12-05金牌会员116275
- apt-get -y install software-properties-common
- add-apt-repository -y ppa:vbernat/haproxy-1.8
- apt-get update
- apt-cache policy haproxy
- apt-get install --only-upgrade haproxy
- apt -y install haproxy
- wget https://gist.githubusercontent.com/ernut/f0c0371fce4fb72619169bd80251419d/raw/ea5873c87a603b6450e3471000fae43b08366e07/haproxy.cfg -O /etc/haproxy/haproxy.cfg
- /etc/init.d/haproxy restart
- 复制代码
默认host是 sdk.m.youku.com,haproxy监听80,web监听81和55R监听82
需其他参数自行修改/etc/haproxy/haproxy.cfg
配置很简单一看就懂,改完配置记得重启haproxy(/etc/init.d/haproxy restart)