
ssl – 如果存在标头,则Nginx设置proxy_set_header
我正在使用AWS CloudFront在到达后端之前终止我的SSL,并且需要将此流量与非CloudFront流量区分开以在Nginx中设置proxy_set_header.我认为最好的方法是检查X-Amz-Cf-Id标头(added by CloudFront),并在它出现时设置proxy_set_header.但是,我知道在Nginx if语句
我正在使用AWS CloudFront在到达后端之前终止我的SSL,并且需要将此流量与非CloudFront流量区分开以在Nginx中设置proxy_set_header.我认为最好的方法是检查X-Amz-Cf-Id标头(added by CloudFront),并在它出现时设置proxy_set_header.但是,我知道在Nginx if语句