这个其实有点无语,当时想太多了,其实slb上443转发到后端nginx对应的80就好了,即做单向认证
对应的4xx和5xx的状态码添加
/etc/systcl.conf配置
net.ipv4.conf.default.rp_filter = 0 net.ipv4.conf.all.rp_filter = 0 net.ipv4.conf.eth0.rp_filter = 0