platform.ufo.conf 853 Bytes
server {
    listen      80;
    server_name admin.ufo.yohobuy.com;
    #charset koi8-r;
    access_log  /Data/logs/nginx/ufoPlatform-access.log  fenxi;

     # only allow for office access
        allow  218.94.75.58;
        allow  218.94.75.50;
        allow 218.94.77.166;
        allow 106.38.38.146;
        allow 106.39.86.227;
        allow 106.39.86.228;
        allow 106.39.86.226;
        allow 106.38.38.147;
        allow 172.31.0.0/16;
        allow 10.66.0.0/16;
        deny all;

    location ^~ /ufoPlatform/ {
        proxy_redirect off;
        proxy_pass  http://ufoplatform/ufoPlatform/;
        proxy_set_header   Host   "admin.ufo.yohobuy.com";
        proxy_set_header   X-Real-IP  $remote_addr;
        proxy_set_header   X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_set_header   Accept-Encoding "gzip";
    }
}