阿里云——SLB踩坑记录

前言

这个其实有点无语,当时想太多了,其实slb上443转发到后端nginx对应的80就好了,即做单向认证

步骤

健康检查

  1. 对应的4xx和5xx的状态码添加
    修改监听配置
    健康检查高级配置
    添加状态码

  2. /etc/systcl.conf配置
net.ipv4.conf.default.rp_filter = 0
net.ipv4.conf.all.rp_filter = 0
net.ipv4.conf.eth0.rp_filter = 0
  1. 单向认证
    slb上是443端口,但是你后端要转发到对应80端口就好了

猜你喜欢

转载自www.cnblogs.com/wangyang0210/p/12387325.html