diff --git a/fir_ser/nginx-vhost.conf b/fir_ser/nginx-vhost.conf index 4638484..a1c03cd 100644 --- a/fir_ser/nginx-vhost.conf +++ b/fir_ser/nginx-vhost.conf @@ -34,8 +34,9 @@ server # root /data/flyapp/fir_ser/; # rewrite ^/download/(.*) /files/$1 break; # } - - + # 如果使用cdn,需要配置该选项 + set_real_ip_from 0.0.0.0/0; + real_ip_header X-Forwarded-For; location ~ ^/(download|api|files|udid|captcha) { #proxy_pass http://synchrotron;